Code-Projects Online Music Site SQL Injection Vulnerability in ViewSongs.php

Vulnerability

A SQL injection vulnerability exists in Code-Projects Online Music Site version 1.0, specifically within the ViewSongs.php file. The issue arises because the application improperly sanitizes the 'id' parameter, allowing attackers to inject malicious SQL code. This 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, executing administrative operations on the database. Such actions could disrupt the application's normal functioning and cause significant damage to the system's integrity and data security.

Reproduction

The vulnerability can be reproduced by sending a GET request to the ViewSongs.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

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, blocking malicious data. Finally, database user permissions should be minimized, ensuring that accounts used to connect to the database have only the necessary privileges.

Added: Jan 2, 2026, 6:18 PM
Updated: Jan 2, 2026, 6:18 PM

Vulnerability Rating

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