Code-Projects Library System SQL Injection Vulnerability in return.php

Vulnerability

A SQL injection vulnerability has been identified in Code-Projects Library System version 1.0. The issue arises in the file return.php, where user-supplied input in the ID parameter is not properly sanitized before being included in SQL queries. This vulnerability can be exploited remotely, allowing attackers to manipulate database queries and potentially access, modify, or delete database records. In severe cases, it could lead to unauthorized system access.

Impact

Exploitation of this vulnerability allows for SQL injection, where an attacker can interfere with the application's database queries. This could result in unauthorized data access, data manipulation or deletion, and in some cases, gaining control over the underlying system.

Reproduction

The vulnerability can be reproduced by sending a GET request to return.php with a crafted ID parameter that includes malicious SQL code. 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 for database queries, validate and filter user input, minimize database user permissions, and conduct regular security audits.

Added: Nov 24, 2025, 3:18 AM
Updated: Nov 24, 2025, 3:18 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
10.0
exploitability
6.0
remediation
0.0
relevance
1.1
threat
6.4
urgency
2.9
incentive
1.7

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