Code-Projects Employee Management System SQL Injection Vulnerability in Approve.php

Vulnerability

A SQL injection vulnerability has been identified in the Code-Projects Employee Management System version 1.0. The issue resides in the file '370project/approve.php', where user-supplied parameters 'id' and 'token' are directly concatenated into an SQL 'UPDATE' statement without proper parameterization. This flaw allows remote attackers to manipulate approval logic, infer database behavior using blind SQL injection techniques, and potentially degrade application performance by causing time delays or triggering resource-intensive database operations.

Impact

Exploitation of this vulnerability allows for unauthorized manipulation of approval statuses, depending on database permissions and behavior. Additionally, the vulnerability could be exploited to perform time-based blind SQL injection, inferring database information based on response times, or to execute costly database operations that could disrupt application performance.

Reproduction

To reproduce this vulnerability, send a GET request to '370project/approve.php' with the 'id' and 'token' parameters. The 'id' parameter can be replaced with a crafted payload that exploits the SQL injection vulnerability, such as a payload that includes a time-delay function. The injection can be verified by comparing the response time to a baseline request without the payload, as the vulnerable application will redirect to 'empleave.php' after processing the SQL command.

Added: Apr 27, 2026, 12:20 PM
Updated: Apr 27, 2026, 12:20 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.8
exploitability
8.7
remediation
0.0
relevance
6.8
threat
6.4
urgency
2.9
incentive
4.2

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