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

Vulnerability

A SQL injection vulnerability exists in the 'Online Guitar Store' project, version 1.0, specifically within the 'Create_category.php' file. The issue arises because the 'dre_Ctitle' parameter can be manipulated to inject malicious SQL code. This unsanitized input is directly used in SQL queries, allowing attackers to alter the queries and execute unauthorized database operations. The vulnerability can be exploited remotely without any authentication.

Impact

Exploitation of this vulnerability allows attackers to manipulate SQL queries, potentially leading to unauthorized data access, data modification, and in some cases, full control over the application or server.

Reproduction

The vulnerability can be reproduced by sending a POST request to '/admin/Create_category.php' with the 'dre_Ctitle' parameter. Injecting a crafted SQL payload, such as one that exploits time-based blind SQL injection, can demonstrate the vulnerability. The injection point can be verified using tools like sqlmap, which can automate the exploitation process.

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 that user input conforms to expected formats. Finally, database user permissions should be minimized to reduce the impact of a potential exploitation.

Added: Jan 1, 2026, 6:22 PM
Updated: Jan 1, 2026, 6:22 PM

Vulnerability Rating

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