/

CVE-2026-76049

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in Simple Online Food Ordering System

CVE-2026-76049

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Database confidentiality, integrity, and availability compromise

Severity:

HIGH RISK

(7.3)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A high-severity SQL injection vulnerability affects the administrative menu-saving endpoint in SourceCodester Simple Online Food Ordering System 1.0. If attacker-controlled input reaches the ID parameter without safe query handling, a remote attacker may influence database operations and potentially access, modify, or disrupt stored data.

Affected context

The vulnerability occurs in the administrative AJAX endpoint /admin/ajax.php?action=save_menu, where the ID argument is processed during menu-saving operations. Risk is present when the endpoint is remotely reachable and user-controlled input is incorporated into database queries without effective parameterization or equivalent query-safety controls.

Exploit preconditions

  • Attack surface: Remotely accessible administrative web endpoint
  • Required access: Access sufficient to send requests to the affected endpoint; the exact authentication requirement depends on deployment configuration
  • Trigger point: Processing of the ID argument in the menu-saving action
  • Why exploitation is possible: Input may influence SQL query construction rather than being treated strictly as data

Why this happens

The underlying bug is an injection flaw in which externally supplied input is allowed to affect the structure or behavior of a database query. This maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection) and is also related to CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component. The insecure pattern occurs when application data and SQL instructions are combined without reliable separation through parameterized queries, safe query APIs, or equivalent controls.

Potential impact

  • An attacker may read data that should remain confidential
  • An attacker could alter menu or other application records
  • Database integrity may be compromised
  • Application functionality could be disrupted
  • Database credentials or connected services may be exposed, depending on permissions

General mitigation guidance

Mitigation generally focuses on ensuring that database commands remain structurally separate from user-supplied values.

Common defensive patterns include:

  • Using parameterized queries, prepared statements, or safe database abstractions
  • Applying allowlist validation for identifiers and values according to their expected types
  • Avoiding dynamic SQL construction from request parameters
  • Restricting database accounts to the minimum required privileges
  • Limiting administrative endpoint exposure and enforcing appropriate authorization
  • Using generic error handling that does not disclose database details
  • Treating input validation as a supporting control rather than a replacement for query parameterization

How teams detect issues like this

Organizations can look for SQL injection risks through:

  • Static analysis rules identifying string concatenation or interpolation in SQL construction
  • Code review checks for database queries that directly consume request parameters
  • Dynamic testing of administrative endpoints with controlled, non-destructive input variations
  • Web application firewall or API gateway policies that detect suspicious injection patterns
  • Database monitoring for anomalous query structure, error spikes, or unexpected access to sensitive tables
  • Automated security review tools that flag unsafe query APIs and missing parameter binding

Sources

SourceLink
github.comgithub.com/Kristin5634487/cve/issues/6
vuldb.comvuldb.com/cve/CVE-2026-76049
vuldb.comvuldb.com/submit/878227
vuldb.comvuldb.com/vuln/391950
vuldb.comvuldb.com/vuln/391950/cti
sourcecodester.comsourcecodester.com/

Frequently asked

questions

Yes. The affected endpoint is remotely reachable, although practical exploitation depends on exposure, authentication, authorization, and other deployment controls.

Not necessarily. The required access depends on how the endpoint is protected. Any account or network position permitted to invoke the action may be relevant.

Use parameterized queries or prepared statements for all database operations, validate inputs according to their expected types, and avoid constructing SQL commands by concatenating request data.

Combine secure database APIs with least-privilege database accounts, focused code review, automated static analysis, endpoint authorization checks, and monitoring for abnormal database activity.

Find out what's already
exploitable in your codebase.