Safeguard
Vulnerability Analysis•

CVE-2024-4820: Medium Upload Flaw in SourceCodester Laptop Store

CVE-2024-4820 is a medium (6.3) unrestricted upload in SourceCodester Online Computer and Laptop Store 1.0 SystemSettings.php. No fix is listed.

Safeguard Security Team
3 min read

CVE-2024-4820 is a medium severity unrestricted file upload flaw in SourceCodester Online Computer and Laptop Store 1.0, scored 6.3. The settings update function accepts uploads without proper limits. The record lists no fixed version, so restrict the admin area and stop uploads from running as code.

What's affected

The record names SourceCodester Online Computer and Laptop Store 1.0. The flawed code is /classes/SystemSettings.php, called with the function update_settings. The weakness is CWE-434. The record says the attack can start remotely and that the exploit is public. The record lists no fixed version and I could not confirm one from the sources, so verify with the project before assuming a patch exists.

NVD scores 6.3 Medium with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L, while VulDB's wording calls it critical. The KEV flag is false.

The same product has a SQL injection record, CVE-2024-4798, in the admin brand page. The two issues are separate: one lets a user store a file, the other lets request values reach a query. A site that has both has two ways in through the admin area.

How to check if you're exposed

  1. Find Online Computer and Laptop Store in your web roots and check for version 1.0.
  2. Find where the settings function stores uploaded files, and list the contents.
  3. Look for files with script extensions, double extensions or sizes that do not fit a logo or banner.
  4. Check that web server rules deny script execution in that folder.
  5. Review access logs for posts to the settings class.

What to do now

  1. Close the admin area to the internet.
  2. Allow only known image types, and verify the content, not the extension alone.
  3. Store uploads outside the web root, or serve them from a path that cannot run code.
  4. Remove files you do not recognise and rotate credentials.
  5. Review the application for a database injection issue as well, given CVE-2024-4798.
  6. Replace the application if you cannot maintain it.

Why it matters

Unrestricted upload is dangerous because the server stores something the attacker chose. If the server then runs or serves it, the result can range from defacement to code execution on the host.

The medium score reflects the need for a login. Many small shops reuse one admin password across tools, so the real barrier may be lower than the vector implies. Scanning the code for upload handlers before deployment is far cheaper than cleaning up afterward.

Quick check

Is a vendor fix listed?

No. The record names no fixed version and none was confirmed in the sources.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.