Safeguard
Vulnerability Analysis•

CVE-2024-4798: Medium SQL Injection in SourceCodester Laptop Store

CVE-2024-4798 is a medium (6.3) SQL injection in SourceCodester Online Computer and Laptop Store 1.0 manage_brand.php. No fix is listed, so isolate it.

Safeguard Security Team
3 min read

CVE-2024-4798 is a medium severity SQL injection flaw in SourceCodester Online Computer and Laptop Store 1.0, scored 6.3. It sits in the admin brand management page. The record lists no fix, so restrict the admin area, review the code, and plan on replacing the application.

What's affected

The record names SourceCodester Online Computer and Laptop Store 1.0. The flawed file is /admin/maintenance/manage_brand.php, and the id argument reaches a database query unsafely. The weakness is CWE-89.

Unlike many SQL injection reports, the location here is a maintenance screen in the admin area. The vector says low privileges are required, so an account is needed. The record states the attack can be launched remotely and the exploit has been disclosed publicly. 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 gives 6.3 Medium with CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L. The VulDB wording in the record calls it critical. The KEV flag is false.

The same product carries another record in this range, CVE-2024-4820, an unrestricted upload in the system settings.

How to check if you're exposed

  1. Look for Online Computer and Laptop Store in your web roots and read the version. The record covers 1.0.
  2. Check for the /admin/maintenance/ folder and the manage_brand.php file.
  3. See whether the admin area can be reached from outside the company.
  4. Check the application's database user for broad rights.

Teams that use sample projects as a starting point for internal tools often forget they are running them. A repository search for the product name across your code hosting is a cheap way to find forks.

What to do now

  1. Close off the admin path to the internet.
  2. Limit admin accounts and rotate their passwords.
  3. If you own the code, change the query in manage_brand.php to use a parameterised statement, and check sibling files.
  4. Give the database account the minimum rights.
  5. Review the database for unexpected records.
  6. Prefer a maintained product for anything that holds customer data.

Why it matters

A brand edit screen seems harmless, which is exactly why it is often left unchecked. Any page that turns a request value into a query is a candidate for CWE-89, however minor its purpose.

Hobby and tutorial code is written to demonstrate features, not to resist hostile input. Using it in production moves all of the security work onto you. That is a fair reason to scan the code before you deploy it.

Quick check

Does the admin login protect me?

Partly. The vector needs low privileges, so a login is required, but weak or shared admin passwords would undo that.

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.