Code-Projects Point of Sales and Inventory Management System SQL Injection Vulnerability

Vulnerability

A critical SQL injection vulnerability has been identified in Code-Projects Point of Sales and Inventory Management System version 1.0. The issue arises in the file '/user/add_cart.php', where the 'id' and 'qty' parameters can be manipulated to execute unauthorized SQL commands. This vulnerability can be exploited remotely, potentially allowing attackers to access sensitive information from the application's database.

Impact

Exploitation of this vulnerability allows for SQL injection, where an attacker can interfere with the application's database queries. This could lead to unauthorized data access, data manipulation, or in some cases, executing administrative operations on the database.

Reproduction

To reproduce this vulnerability, send a POST request to '/user/add_cart.php' with the 'id' and 'qty' parameters. The request can be made using a web browser or a tool like Postman. Ensure that the 'Content-Type' is set to 'application/x-www-form-urlencoded' and that the 'X-Requested-With' header is included to simulate an AJAX request.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

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