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.
Published: 2026-08-24
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

History

Mon, 24 Aug 2026 05:30:00 +0000

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'}


Subscriptions

Sourcecodester Simple Online Food Ordering System
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-08-24T05:15:09.154Z

Reserved: 2026-08-23T22:35:19.462Z

Link: CVE-2026-78198

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-24T06:19:46.750

Modified: 2026-08-24T06:19:46.750

Link: CVE-2026-78198

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-24T06:30:13Z

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')