Code-Projects Student File Management System SQL Injection Vulnerability in Delete User Function

Vulnerability

A SQL injection vulnerability exists in Code-Projects Student File Management System version 1.0, specifically within the admin/delete_user.php file. The vulnerability arises because the user_id POST parameter is directly included in SQL queries without adequate validation or sanitization. This flaw allows remote attackers to inject malicious SQL code, potentially leading to unauthorized database access, data manipulation or deletion, and further system compromise. Exploitation does not require authentication, but the vulnerability could be exploited by an authenticated user with administrative privileges.

Impact

Exploitation of this vulnerability allows for SQL injection, where an attacker can manipulate database queries. This could lead to unauthorized data access, data modification or deletion, and potentially allow the attacker to execute additional malicious actions on the system by exploiting the database access.

Reproduction

To reproduce this vulnerability, send a POST request to the admin/delete_user.php file with a crafted user_id parameter that includes SQL injection payloads. The injection can be boolean-based blind, time-based blind, or a UNION query that extracts data from the database.

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 meets expected formats, and database user permissions should be minimized to the least required for operations.

Added: Dec 14, 2025, 6:19 AM
Updated: Dec 14, 2025, 6:19 AM

Vulnerability Rating

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