SourceCodester Employee Management System aprocess.php sql injection
Description
A vulnerability was found in SourceCodester Employee Management System. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file /process/aprocess.php. The manipulation of the argument mailuid leads to sql injection. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. The identifier VDB-205837 was assigned to this vulnerability.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A critical SQL injection vulnerability in SourceCodester Employee Management System allows remote attackers to bypass authentication via the `mailuid` parameter in `/process/aprocess.php`.
Vulnerability
The /process/aprocess.php endpoint in SourceCodester Employee Management System versions up to and including the latest available release is vulnerable to SQL injection. The mailuid POST parameter is directly concatenated into a SQL query without sanitization or parameterization: $sql = "SELECT * from alogin WHERE email = '$email' AND password = '$password'";. This allows an attacker to inject arbitrary SQL commands. The affected software is available for download on SourceCodester [1].
Exploitation
An attacker can exploit this vulnerability remotely without any prior authentication. The proof of concept demonstrates that sending a POST request to /ems/process/aprocess.php with mailuid=admin' or 1 # and any password results in a successful login, bypassing authentication [1]. Additionally, automated tools like sqlmap can be used to perform boolean-based blind, error-based, and time-based blind SQL injection attacks, allowing extraction of database contents [1].
Impact
Successful exploitation allows an attacker to bypass authentication and gain unauthorized administrator-level access to the Employee Management System. This can lead to full disclosure of sensitive employee data, modification or deletion of records, and potentially full compromise of the application’s database and underlying server [1].
Mitigation
As of the publication date (August 2022), no official patch or fixed version has been released by SourceCodester [1]. The vendor has not responded or provided updated code. System administrators should consider disabling or removing the affected application from production environments, implementing web application firewall rules to block SQL injection patterns, or manually sanitizing the mailuid parameter using prepared statements. This vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2- Range: n/a
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
2- bewhale.github.io/post/PHP%E4%BB%A3%E7%A0%81%E5%AE%A1%E8%AE%A1%E2%80%94Employee%20Management%20System%20aprocess.php%20SQL%20Injection/mitrex_refsource_MISC
- vuldb.commitrex_refsource_MISC
News mentions
0No linked articles in our index yet.