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

Vulnerability

A SQL injection vulnerability has been identified in SourceCodester Sales and Inventory System version 1.0. The issue resides in the view_supplier.php file, specifically within the POST parameter handler. The vulnerability arises because the searchtxt parameter is not properly sanitized, allowing authenticated attackers to inject arbitrary SQL commands. This exploitation can lead to unauthorized data access and manipulation.

Impact

Exploitation of this vulnerability allows attackers to execute arbitrary SQL commands, potentially leading to unauthorized data access, data exfiltration, and manipulation of database contents. The vulnerability has been confirmed to allow UNION-based, Boolean-based, and Time-based SQL injection attacks.

Reproduction

To reproduce this vulnerability, log into the application and navigate to the supplier list page. Use the search bar to submit a SQL injection payload through the searchtxt parameter. Alternatively, capture the request with a tool like Burp Suite and inject the payload manually. The vulnerability can also be exploited using SQLMap by targeting the view_supplier.php file with a crafted POST request that includes the malicious SQL payload in the searchtxt parameter.

Added: Mar 24, 2026, 10:20 PM
Updated: Mar 24, 2026, 10:20 PM

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.