Code-Projects Online Guitar Store SQL Injection Vulnerability in Delete_product.php

Vulnerability

A SQL injection vulnerability exists in the file Delete_product.php of the Code-Projects Online Guitar Store version 1.0. The issue arises because the del_pro parameter is manipulated, allowing attackers to inject malicious SQL code. This unsanitized input is directly used in SQL queries, enabling unauthorized data access and manipulation. The vulnerability can be exploited remotely without authentication.

Impact

Exploitation of this vulnerability allows attackers to inject SQL commands that could be executed by the database. This could lead to unauthorized data access, data manipulation, and in some cases, executing administrative operations on the database. Such actions could severely compromise the application's data integrity and security.

Reproduction

The vulnerability can be reproduced by sending a GET request to the Delete_product.php file with a crafted del_pro parameter that includes SQL injection payloads. This can be done using tools like sqlmap, which can automate the injection process and exploit the vulnerability.

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 meets expected formats, blocking malicious data. Finally, database user permissions should be minimized, ensuring that the account used for database connections has only the necessary privileges.

Added: Jan 1, 2026, 7:21 PM
Updated: Jan 1, 2026, 7:21 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
8.7
remediation
0.0
relevance
1.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.