Code-Projects Inventory Management System SQL Injection Vulnerability in removeCategories.php

Vulnerability

A critical SQL injection vulnerability has been identified in version 1.0 of the Code-Projects Inventory Management System. The issue arises in the file '/php_action/removeCategories.php', where the 'categoriesId' parameter is manipulated, leading to unauthorized database access. This vulnerability allows attackers to inject malicious SQL queries, potentially modifying or deleting data and accessing sensitive information. Notably, no authentication is required to exploit this vulnerability, and it can be initiated remotely.

Impact

Exploitation of this vulnerability allows for SQL injection, where attackers can manipulate database queries to gain unauthorized access to the database, leak sensitive data, alter or delete information, and potentially disrupt services.

Reproduction

The vulnerability can be reproduced by sending a POST request to '/php_action/removeCategories.php' with a crafted 'categoriesId' parameter that includes malicious SQL payloads. This can be done using tools like sqlmap, which automates the process of finding and exploiting SQL injection vulnerabilities.

Remediation

To address this vulnerability, it is recommended to use prepared statements and parameter binding to prevent SQL injection, validate and filter user input, minimize database user permissions, and conduct regular security audits.

Added: Jun 25, 2025, 4:40 PM
Updated: Jun 25, 2025, 4:40 PM

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
7.5
exploitability
9.1
remediation
0.0
relevance
0.2
threat
6.4
urgency
2.9
incentive
10.0

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