Code-Projects Simple Leave Manager SQL Injection Vulnerability in User.php

Vulnerability

A SQL injection vulnerability has been identified in Code-Projects Simple Leave Manager version 1.0. The issue arises in the user.php file, where the application improperly handles the 'table' parameter. This lack of proper input validation allows attackers to manipulate SQL queries, potentially leading to unauthorized data access or modification. The vulnerability can be exploited remotely, without any authentication requirements.

Impact

Exploitation of this vulnerability allows for SQL injection, where an attacker can interfere with the application's database queries. This could lead to unauthorized data access, data manipulation, or in some cases, executing administrative operations on the database.

Reproduction

To reproduce this vulnerability, send a POST request to '/leave/user.php' with the 'table' parameter set to 'employee'. Include a 'login-type' of 'staff' and any values for 'username' and 'password'. The server response will indicate successful exploitation by returning data from the 'employee' table, demonstrating that the SQL injection was successful.

Added: Oct 9, 2025, 9:39 PM
Updated: Oct 9, 2025, 9:39 PM

Vulnerability Rating

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