SourceCodester Sales and Inventory System SQL Injection Vulnerability in Check Supplier Details Component

Vulnerability

A SQL injection vulnerability has been identified in SourceCodester Sales and Inventory System version 1.0. The issue resides in the check_supplier_details.php file, specifically within the POST parameter stock_name1. This vulnerability allows authenticated attackers to manipulate the parameter and execute arbitrary SQL commands, potentially leading to unauthorized data access or modification. The injection can be performed remotely, and a public exploit is available.

Impact

Exploitation of this vulnerability allows for UNION-based, Boolean-based, and Time-based SQL injection attacks, enabling attackers to exfiltrate database information, such as supplier details and credentials, and to manipulate database queries.

Reproduction

To reproduce this vulnerability, log into the application and send a POST request to check_supplier_details.php with a crafted stock_name1 parameter. Alternatively, use sqlmap to automate the exploitation.

Added: Mar 9, 2026, 12:19 AM
Updated: Mar 9, 2026, 12:19 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
4.6
remediation
0.0
relevance
3.7
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.