SourceCodester Payroll Management and Information System SQL Injection Vulnerability

Vulnerability

A SQL injection vulnerability has been identified in SourceCodester Payroll Management and Information System version 1.0. The issue resides in the file 'view_employee.php' within the 'payroll' directory. The vulnerability allows attackers to manipulate the 'emp_id' parameter, potentially leading to unauthorized database access or manipulation.

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 GET request to 'payroll/view_employee.php' with a crafted 'emp_id' parameter that includes SQL injection payloads. For example, an injection payload could be used to union select database information, which would demonstrate the ability to manipulate the SQL query and extract sensitive data.

Added: Apr 16, 2026, 3:56 PM
Updated: Apr 16, 2026, 3:56 PM

Vulnerability Rating

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