Code-Projects E-Commerce Website SQL Injection Vulnerability in Order Deletion Page

Vulnerability

A SQL injection vulnerability has been identified in Code-Projects E-Commerce Website version 1.0. The issue arises in the 'delete_order_details.php' file, where the 'order_id' parameter is not properly validated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, without any authentication, potentially leading to unauthorized database access, data manipulation, and exposure of sensitive information.

Impact

Exploitation of this vulnerability allows for SQL injection, which can lead to unauthorized access to the database, manipulation or deletion of data, and access to sensitive information. Such actions pose a significant risk to the overall security of the system and the integrity of its data.

Reproduction

The vulnerability can be reproduced by sending a request to the 'delete_order_details.php' page with a crafted 'order_id' parameter that includes malicious SQL code. This can be done using a tool 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. Additionally, input validation and filtering should be implemented to ensure that user input conforms to expected formats. Minimizing database user permissions and conducting regular security audits can also help enhance the overall security of the application.

Added: Oct 11, 2025, 10:33 AM
Updated: Oct 11, 2025, 10:33 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
10.0
exploitability
8.7
remediation
0.0
relevance
0.7
threat
6.4
urgency
2.9
incentive
5.8

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