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

Vulnerability

A critical SQL injection vulnerability has been identified in version 1.0 of the Code-Projects Library System. The issue resides in the profile.php file, where the phone parameter is manipulated to inject malicious SQL queries. This vulnerability can be exploited remotely, without any authentication, leading to unauthorized database access, data modification or deletion, and exposure of sensitive information.

Impact

Exploitation of this vulnerability allows for SQL injection, enabling attackers to manipulate database queries. This could result in unauthorized access to database information, modification or deletion of data, and in some cases, execution of administrative operations on the database.

Reproduction

The vulnerability can be reproduced by sending a POST request to the profile.php file with a crafted payload that includes a SQL injection in the phone parameter. 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 implement input validation and sanitization for the phone parameter to prevent SQL injection. Additionally, using prepared statements and parameterized queries can help mitigate the risk by separating SQL code from user input. Regular security audits and minimizing database user permissions are also advisable.

Added: Jun 29, 2025, 1:21 AM
Updated: Jun 29, 2025, 1:21 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.8
exploitability
6.0
remediation
0.0
relevance
0.2
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.