SourceCodester Sales and Inventory System SQL Injection Vulnerability in View Product Component

Vulnerability

A SQL injection vulnerability has been identified in SourceCodester Sales and Inventory System version 1.0. The issue resides in the view_product.php file, specifically within the HTTP POST request handler. The vulnerability arises because the application does not properly sanitize the searchtxt parameter, allowing authenticated attackers to inject arbitrary SQL commands. This exploitation can be performed remotely, and the injected SQL can be used to manipulate the application's database queries.

Impact

Exploitation of this vulnerability allows attackers to bypass authentication, read administrator credentials, and execute arbitrary SQL commands that could be used to exfiltrate sensitive database information or manipulate database contents.

Reproduction

To reproduce this vulnerability, log into the application and navigate to the product list page. Once there, use the search bar to submit SQL injection payloads through the searchtxt parameter. Alternatively, capture the request with a tool like sqlmap, which can automate the exploitation process.

Added: Mar 23, 2026, 5:18 AM
Updated: Mar 23, 2026, 5:18 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
4.6
remediation
0.0
relevance
4.3
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.