CVE-2024-4921: SourceCodester Employee and Visitor Gate Pass Logging System unrestricted upload
A vulnerability classified as critical has been found in SourceCodester Employee and Visitor Gate Pass Logging System 1.0. Affected is an unknown function of the file /employeegatepass/classes/Users.php?f=ssave. The manipulation of the argument img leads to unrestricted upload. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. The identifier of this vulnerability is VDB-264456.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Apply input validation/controls to the img argument used by /employee_gatepass/classes/Users.php?f=ssave to prevent unrestricted uploads (e.g., reject unexpected types/paths and disallow direct unrestricted upload behavior).
SourceCodester Employee and Visitor Gate Pass Logging System Unrestricted upload via img argument = Restrict/validate img input to prevent file upload that allows unrestricted uploads - Compensating control
Restrict remote access to the application endpoints so that /employee_gatepass/classes/Users.php?f=ssave and the file upload functionality cannot be reached from untrusted networks/Internet; allow access only from trusted IPs.
- Operational
Audit and remove any files uploaded via the vulnerable unrestricted upload vector (img manipulation) and rotate credentials/sessions if compromise is suspected.
Event History
Frequently Asked Questions
What is the severity of CVE-2024-4921?
The severity of CVE-2024-4921 is classified as critical due to the possibility of unrestricted file uploads.
How does CVE-2024-4921 affect SourceCodester Employee and Visitor Gate Pass Logging System?
CVE-2024-4921 affects the function in Users.php by allowing attackers to manipulate the img argument for unauthorized file uploads.
How can I mitigate CVE-2024-4921?
To mitigate CVE-2024-4921, ensure that proper file upload validation and restrictions are implemented in your application.
What versions of the software are impacted by CVE-2024-4921?
CVE-2024-4921 impacts version 1.0 of the SourceCodester Employee and Visitor Gate Pass Logging System.
Is there a patch available for CVE-2024-4921?
As of now, there is no official patch provided for CVE-2024-4921, so users should apply mitigation strategies.