CVE-2026-78198

SourceCodester Simple Online Food Ordering System ajax.php add_to_cart sql injection

Published Aug 24, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
A security vulnerability has been detected in SourceCodester Simple Online Food Ordering System 1.0. This issue affects some unknown processing of the file /fos/admin/ajax.php?action=add_to_cart. Such manipulation of the argument pid leads to sql injection. The attack may be launched remotely. The exploit has been disclosed publicly and may be used.

Analysis

AI-generated

Technical impact

A remote attacker can manipulate the pid parameter in the add_to_cart action of the food ordering system’s ajax.php endpoint, causing injected SQL to be executed against the backend database. This gives the attacker the ability to read, modify, or delete customer and order data, undermining confidentiality and integrity of the system’s data. The vulnerability does not directly trigger remote code execution but can lead to significant data compromise.

Affected Systems

The vulnerability has been identified in SourceCodester Simple Online Food Ordering System version 1.0. No official fix version is listed, and it is unclear if later releases contain the issue; thus all installations of the affected version should be considered vulnerable.

Risk and Exploitability

The CVSS score of 6.9 reflects a moderate severity with a remote attack vector and user interaction. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog, indicating no known large‑scale active exploitation at the time of analysis. However, the public disclosure and absence of mitigations suggest that an attacker could launch the exploit from a remote location by sending a crafted request to /admin/ajax.php?action=add_to_cart and manipulating the pid field.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply any vendor‑supplied patch or upgrade to a newer release of the Simple Online Food Ordering System that addresses the SQL injection flaw.
  • Implement strict input validation and use parameterized database queries or prepared statements for all user‑supplied parameters, especially pid, to eliminate injection vectors.
  • Restrict access to the /admin/ajax.php endpoint so that only authenticated, authorized users can invoke the add_to_cart action, and enforce proper session validation.

Generated by OpenCVE AI on August 24, 2026 at 06:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A security vulnerability has been detected in SourceCodester Simple Online Food Ordering System 1.0. This issue affects some unknown processing of the file /fos/admin/ajax.php?action=add_to_cart. Such manipulation of the argument pid leads to sql injection. The attack may be launched remotely. The exploit has been disclosed publicly and may be used.
Title SourceCodester Simple Online Food Ordering System ajax.php add_to_cart sql injection
First Time appeared Sourcecodester
Sourcecodester simple Online Food Ordering System
Weaknesses CWE-74
CWE-89
CPEs cpe:2.3:a:sourcecodester:simple_online_food_ordering_system:*:*:*:*:*:*:*:*
Vendors & Products Sourcecodester
Sourcecodester simple Online Food Ordering System
References
Metrics cvssV2_0

{'score': 7.5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 7.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Aug 27, 2026, 2:37 PM
Reserved
Aug 23, 2026, 10:35 PM
Status
Deferred
Published
Aug 24, 2026, 6:19 AM
Modified
Oct 12, 2026, 4:10 PM