Code-Projects Product Inventory System SQL Injection Vulnerability in Edit User Admin Page

Vulnerability

A critical SQL injection vulnerability has been identified in the Code-Projects Product Inventory System version 1.0. The issue arises in the file '/admin/edit_user.php', where the 'id' parameter is improperly validated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, but requires authentication to access the affected page.

Impact

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

Reproduction

To reproduce this vulnerability, log into the application with valid credentials (the default admin credentials are 'admin' and '111'). Once authenticated, navigate to the '/admin/edit_user.php' page. The vulnerability can be exploited by injecting SQL payloads into the 'id' parameter of the URL. This can be done using a SQL injection tool like sqlmap, or manually by crafting a request that includes the malicious SQL payload.

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 29, 2025, 4:19 AM
Updated: Jun 29, 2025, 4:19 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.6
exploitability
6.6
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.