28 comment(s)
Web Security – Different types of attacks
By: Tung Tram

 Web security is an interesting topic and anyone who works on web development should pay attention on this topic as well. Ineffective web security may lead to several issues that we usually hear about the web: spam, virus, identity theft …

On a report from Cenzic, a web security company, we have an overall look at the different types of web attacks, and percentage of that kind of attack happen on internet.
 
 
Let’s go through all of these things and explain what they are and do. 
 
1. SQL Injection
With an SQL injection, an attacker accesses your database by sending an SQL command to your server via the URI or form fields. You can find more information about SQL injection here - http://en.wikipedia.org/wiki/SQL_injection. 
 
2. Cross-Site Scripting (XSS)
Cross-site scripting is probably the biggest and most common problem. With it, an attacker injects JavaScript code into your document by adding it to the end of the URI as a parameter or in a form field.
 
3. Path Traversal
Allowing for path or directory traversal on your server is an amazingly bad idea. You would be allowing people to list the folders on your server and to navigate from folder to folder. This allows attackers to go to folders with sensitive information or website functionality and have some fun.
 
4. Cross-Site Request Forgery
Cross-site request forgery (CSRF) exploits browsers and websites that allow for functionality to be called without really knowing that an actual user initiated it
 
5. Remote File Inclusion (RFI)
With Remote file inclusion or code injection, an attacker uses a flaw in your website to inject code from another server to run on yours. It is in the same family as XSS but much more problematic because you have full access to your server (with JavaScript, you can steal cookies and call other code, but you can’t access the file system without resorting to tricks with Flash or Java Applets).
 
Any code injected to your server with an untested variable and include() command, for example, could run server commands: upload and download and transfer data to other servers, check your server passwords and user names, anything you can do on the command line via PHP or ASP if your server allows for it.
 
This is probably the worst that can happen to your server, because with command line access, I could turn it into an attack machine for a server network attack, silently listen to everything you and your users do on the server and send it to another Web resource, store information and viruses for distribution, inject spam links, you name it.
 
6. Phishing
Phishing is the technique of fooling people into entering information into a bad website. You show end users an interface that looks legit (for a bank or what have you) but that in reality sends their information to your database. Because phishing is a felony, I cannot show you a demo.
 
The trick with phishing is to make the form really look like it comes from a website you trust. You have probably gotten emails saying that your “XYZ bank account” has been compromised, and you know for certain that this isn’t the case because you have no account with that bank and may not have even heard of it. This is a wild-guess phishing attempt, which is not usually effective.
 
7. Clickjacking
Clickjacking is a terribly clever way to use CSS and inline frames to trick users into clicking something without knowing it. By clickjacking, you can make end users do things without knowing it. Every action on a website that can be performed with a simple click can be exploited with this trick.
Clickjacking is a massive problem because it is done via CSS, not a script. Unless browsers block frames from having an opacity of 0, there is no simple workaround. The main counter-measure people take is to disallow embedding in frames using JavaScript. However, with JavaScript off, clickjacking still works.
 
In the next article, we will discuss about how to increase web security.
First name
Email
Comment  
5/6/2013
ronny
La7o07 http://www.78NLRvzfIwzacsSvHH4hdZWSkQdHROAk.com
5/2/2013
ronny
PBbYG1 http://www.78NLRvzfIwzacsSvHH4hdZWSkQdHROAk.com
4/14/2013
Pharmb864
Hello! dbfkkba interesting dbfkkba site! I'm really like it! Very, very dbfkkba good!
4/14/2013
Pharmf657
Very nice site!
4/14/2013
Pharmd789
Very nice site! cheap cialis http://apeoixy1.com/xqqvo/4.html
4/14/2013
Pharmd758
Very nice site! [url=http://apeoixy1.com/xqqvo/2.html]cheap cialis[/url]
4/14/2013
Pharma266
Hello! fedaaak interesting fedaaak site! I'm really like it! Very, very fedaaak good!
3/10/2013
Mike
w4f9My http://www.07lkZYohZwB9hW1ijQSORiFiwwxRx9iF.com
2/3/2013
Pharmd851
Very nice site!
2/3/2013
Pharmg791
Very nice site! cheap cialis http://apxyieo1.com/qyoasr/4.html
2/3/2013
Pharme303
Very nice site! [url=http://apxyieo1.com/qyoasr/2.html]cheap cialis[/url]
2/3/2013
Pharmf669
Hello! cbfagab interesting cbfagab site! I'm really like it! Very, very cbfagab good!
2/3/2013
Pharme708
Very nice site!
2/3/2013
Pharmd462
Very nice site! cheap cialis http://apxyieo1.com/qyoasr/4.html
2/3/2013
Pharme89
Very nice site! [url=http://apxyieo1.com/qyoasr/2.html]cheap cialis[/url]
2/3/2013
Pharmd642
Hello! aeddcab interesting aeddcab site! I'm really like it! Very, very aeddcab good!
1/15/2013
gondpbfgdzw
1UgI95 , [url=http://ermuexcbpitm.com/]ermuexcbpitm[/url], [link=http://atugyrisfzra.com/]atugyrisfzra[/link], http://bxhmsgoyhjuf.com/
1/11/2013
Tresor
RUSПостараюсь в этом месяце сделать качественный перевод интерфейса MyDLP на Русский язык.--->ENGThis month to make interface MyDLP high-quality ttnlsaarion on Russian.
10/20/2012
cndbbaul
eZ7upn , [url=http://ajfxcggacvod.com/]ajfxcggacvod[/url], [link=http://qkzapqvokjco.com/]qkzapqvokjco[/link], http://zxarfumabewy.com/
10/20/2012
rhzkmiwazeq
vEqy0e , [url=http://qqdmfqjsfxtz.com/]qqdmfqjsfxtz[/url], [link=http://algibiznkrnn.com/]algibiznkrnn[/link], http://aydmfdgguuxp.com/
10/20/2012
kdkittqac
OYpLcH , [url=http://zuiskkiexfsb.com/]zuiskkiexfsb[/url], [link=http://anewkompvmjz.com/]anewkompvmjz[/link], http://evehbqjdhgqn.com/
10/20/2012
aysiitujv
uC31Yh , [url=http://nogrvxpblfqd.com/]nogrvxpblfqd[/url], [link=http://fvancbcjepos.com/]fvancbcjepos[/link], http://frvgluptpdxh.com/
10/20/2012
nfcqldgr
6ZGhyU , [url=http://icptajshhflj.com/]icptajshhflj[/url], [link=http://ayczlaobalxt.com/]ayczlaobalxt[/link], http://elgauwmdcdpn.com/
10/20/2012
evmbxoxrdz
eeAIaF , [url=http://kodizmjqzaqc.com/]kodizmjqzaqc[/url], [link=http://mozkenygdgci.com/]mozkenygdgci[/link], http://zlaifwguphcr.com/
10/16/2012
Mamat
Actually it is illegal if you unrsdetand how and why. It's considered copyright and IP infringement. The police won't kick down your door and you probably won't go to jail over it, but legally speaking you're in the wrong and the game owners certainly have the legal right to sue you.Will they is a whole different question though as going after individual transgressors is costly and often not worth the trouble. If anything they typically go after the private server owners with cease and desist court orders. Sometimes they have to go beyond that and actually take the offender to court.Like it or not, that's how thing are in the real world. You can pout and cry and make up silly excuses as to why you think it is legal, but facts are facts and private servers aren't legal. Unless the country you live in doesn't have Internet crime laws. In that case sure. But by your attitude, I'm assuming you're a US resident.
10/16/2012
Emilio
Great change and I am glad that you potesd a workaround for us using Mantis partially inside a frame . However having configurations options for this would a be a real highlight Thank you for a great product!
10/16/2012
Greencanary
Regarding security ssetyms, specifically for businesses, I need to agree with you entirely. You'll find so many options in the marketplace, it's critical for a expert to know what is greatestfor their situation and particular complex. The insights you are supplying are a excellent help to companies and as well as security experts alike. Many thanks once more!
9/13/2012
karthik
nice intro
Email: