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

Vulnerability

A SQL injection vulnerability has been identified in SourceCodester Sales and Inventory System version 1.0. The issue resides in the 'view_category.php' file, specifically within the HTTP POST request handler. The vulnerability is triggered by manipulating the 'searchtxt' parameter, allowing authenticated attackers to inject and execute arbitrary SQL commands. This exploitation can be performed remotely, and the injected SQL can be used to exfiltrate sensitive data from the application's MySQL database.

Impact

Exploitation of this vulnerability allows for UNION-based, Boolean-based blind, and Time-based blind SQL injection, enabling attackers to retrieve and display database content, such as categories, and potentially other tables via UNION attacks.

Reproduction

To reproduce this vulnerability, log into the application and navigate to the Category List page. Once there, use the search bar to submit SQL injection payloads through the 'searchtxt' parameter. Alternatively, capture the request and use a tool like SQLMap to automate the exploitation.

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

Vulnerability Rating

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