Code-Projects Online Music Site SQL Injection Vulnerability in AdminDeleteCategory.php
Vulnerability
A SQL injection vulnerability exists in version 1.0 of Code-Projects Online Music Site, specifically within the AdminDeleteCategory.php file. The vulnerability arises because the 'id' 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 access the database without authorization, potentially leading to data theft, unauthorized data modification, complete system control, and service disruption.
Reproduction
The vulnerability can be reproduced by sending a GET request to the AdminDeleteCategory.php file with a crafted 'id' parameter that includes SQL injection payloads. This can be done using tools like sqlmap, which automates the process of finding and exploiting SQL injection vulnerabilities.
Remediation
It is recommended to use prepared statements and parameter binding to prevent SQL injection, validate and filter user input, and limit database user permissions to the minimum required.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
