Employee Record Management System SQL Injection Vulnerability

Vulnerability

A SQL injection vulnerability has been identified in the Employee Record Management System developed by PHP Gurukul. This vulnerability exists in version 1 of the system, which is built with PHP and MySQL. The issue arises in the loginerms.php endpoint, where user input for the username and password is not properly sanitized before being incorporated into SQL queries. As a result, attackers can manipulate these parameters to bypass authentication and potentially access or modify sensitive data.

Impact

Exploitation of this vulnerability allows for authentication bypass, unauthorized access to the application dashboard, manipulation of employee records, and in some cases, remote code execution, depending on database privileges.

Reproduction

To reproduce this vulnerability, navigate to the loginerms.php endpoint of the Employee Record Management System. Enter a crafted payload in the username and password fields that exploits the SQL injection flaw, such as injecting SQL syntax that manipulates the query logic, like bypassing authentication checks.

Added: Jul 7, 2025, 4:55 PM
Updated: Jul 7, 2025, 4:55 PM

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
5.0
exploitability
9.1
remediation
0.0
relevance
0.2
threat
6.4
urgency
2.9
incentive
10.0

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