Campcodes Sales and Inventory System SQL Injection Vulnerability in Cat Update Page

Vulnerability

A critical SQL injection vulnerability has been identified in Campcodes Sales and Inventory System version 1.0. The issue resides in the '/pages/cat_update.php' file, where the 'id' parameter is manipulated to inject malicious SQL code. This vulnerability allows remote attackers to interfere with the application's database queries, potentially leading to unauthorized data access, data manipulation, or disruption of service.

Impact

Exploitation of this vulnerability allows for unauthorized database access, manipulation of database contents, and disruption of service.

Reproduction

To reproduce this vulnerability, send a POST request to '/pages/cat_update.php' with an 'id' parameter that includes a crafted SQL payload. The injection point is the 'id' parameter, which is not properly sanitized before being used in an SQL query. This can be done using tools like Burp Suite or by manually crafting the HTTP request.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection. Additionally, input validation and filtering should be implemented to ensure user input conforms to expected formats. Minimizing database user permissions and conducting regular security audits can also help mitigate such vulnerabilities.

Added: Jun 20, 2025, 7:34 AM
Updated: Jun 20, 2025, 7:34 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
6.0
remediation
0.0
relevance
0.2
threat
6.4
urgency
2.9
incentive
1.7

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