VYPR
Unrated severityNVD Advisory· Published Nov 14, 2024· Updated Nov 14, 2024

SourceCodester Best Employee Management System edit_role.php sql injection

CVE-2024-11213

Description

A vulnerability, which was classified as critical, was found in SourceCodester Best Employee Management System 1.0. This affects an unknown part of the file /admin/edit_role.php. The manipulation of the argument id leads to sql injection. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Critical SQL injection in SourceCodester Best Employee Management System 1.0 allows remote authenticated attackers to extract data via the id parameter in edit_role.php.

Vulnerability

A critical SQL injection vulnerability exists in SourceCodester Best Employee Management System version 1.0. The flaw resides in the /admin/edit_role.php script, where the id parameter is directly concatenated into a SQL query without proper sanitization. The vulnerable code uses $stmt = $conn->prepare("SELECT * FROM groups WHERE id='" . $_POST['id'] . "'");, allowing an attacker to inject arbitrary SQL commands. The attack requires authentication, as the endpoint is part of the admin panel [1].

Exploitation

An attacker must first obtain valid credentials to access the admin panel. Once authenticated, they can send a POST request to /admin/edit_role.php with a crafted id parameter. For example, the payload ';SELECT SLEEP(5) AND 'id'='id triggers a 5-second time delay if the injection is successful, confirming the vulnerability. After confirmation, tools like sqlmap or ghauri can be used to automate data extraction [1].

Impact

Successful exploitation allows an attacker to extract sensitive data from the database, such as user credentials or other confidential information. Additionally, time-based SQL injection can cause denial of service by introducing delays via functions like SLEEP(). No privilege escalation or remote code execution is reported [1].

Mitigation

As of the publication date (2024-11-14), no official patch has been released by the vendor. The application is no longer actively maintained? (SourceCodester projects may be EOL). The recommended mitigation is to sanitize all user inputs and use prepared statements with parameterized queries. Until a fix is available, restrict access to the admin panel and monitor for suspicious activity. This vulnerability is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog [1].

AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

5

News mentions

0

No linked articles in our index yet.