CVE-2024-4921: SourceCodester Employee and Visitor Gate Pass Logging System unrestricted upload

Published May 16, 2024
·
Updated

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

2 affected components
Sourcecodester Employee and Visitor Gate Pass Logging System
oretnom23 Employee And Visitor Gate Pass Logging System=1.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. 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
  2. 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.

  3. 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

May 16, 2024
CVE Published
via MITRE·12:31 AM
Data Sourced
via MITRE·12:31 AM
DescriptionSeverityWeakness
Mar 31, 57258
Event
via FIRST·12:14 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203