Simple Food Ordering System
CVE-2025-12302
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts malicious URL
-
DeliveryDelivers link via email or social engineering
-
ExploitVictim clicks link within application context
-
ExecutionBrowser executes injected script
-
ImpactAttacker steals session cookies or credentials
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 a victim (typically an application user or administrator) to click a malicious link containing injected script payloads in at least one of three parameters: pname, category, or price in the /editproduct.php endpoint. The application must be accessible over the network (remote exposure). No authentication is required to craft or send the malicious URL (PR:N), but the attack only succeeds if a user with active session access visits the link (UI:P). No special application configuration, non-default settings, or feature enablement is mentioned in the description; the vulnerability appears present in all default installations of version 1.0. Server-side sanitation, output encoding, or CSP headers would block exploitation even if users click malicious links. |
| Impact | This vulnerability presents minimal real-world risk despite public POC availability. The CVSS 4.0 score of 2.1 is extremely low, reflecting the UI requirement and limited impact scope (integrity only, not confidentiality or availability). The EPSS score of 0.03% (10th percentile) strongly suggests widespread exploitation is unlikely, possibly due to: (1) the application's narrow user base (simple food ordering systems are typically deployed in small organizations), (2) the requirement for user interaction (phishing or social engineering needed), and (3) the restricted impact to session hijacking or credential theft rather than system compromise. The publicly available POC contradicts expectations of active exploitation in the wild - POC availability does NOT equal widespread attack activity. The CVSS vector shows constrained scope (S:X unclear but impact limited to VI:L), meaning blast radius is contained. Prioritize patching only if this application handles sensitive customer data (payment info, PII); if deployed internally for staff use, risk is lower. |
| Exploit ScenarioDerived | An attacker crafts a malicious URL containing JavaScript payload in the pname parameter (e.g., /editproduct.php?pname=<script>alert('XSS')</script>&category=test&price=10) and shares it via email or forum post targeting application administrators or staff. When a victim clicks the link and visits the page, the unvalidated input is reflected in the HTML response, executing the attacker's script in the victim's browser within the application's security context, allowing cookie theft, session hijacking, or credential harvesting. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Cross-site scripting (XSS) in Simple Food Ordering System 1.0 allows remote attackers to inject malicious scripts via unsanitized input parameters (pname, category, price) in the /editproduct.php endpoint. The vulnerability requires user interaction (UI:P) but carries low integrity impact and has publicly available exploit code; EPSS probability remains minimal (0.03%) despite public POC availability, suggesting limited real-world adoption or exploitation barriers.
RemediationAI
Immediate action: Update to a patched version of Simple Food Ordering System if available from the vendor at code-projects.org or contact the developer (cna@vuldb.com or Fabian) for patch status; no specific patched version number is confirmed in available data. If no patch is available, implement the following compensating controls: (1) Apply input validation and output encoding to all product-related parameters in /editproduct.php, sanitizing user input using a whitelist (alphanumerics and safe symbols only for product names/categories, numeric validation for prices) before storage and using HTML entity encoding (htmlspecialchars() in PHP) before display in any HTML context; (2) Implement Content Security Policy (CSP) headers (e.g., Content-Security-Policy: default-src 'self'; script-src 'self') to block inline scripts and external script execution even if XSS payload reaches the browser; (3) Restrict administrative access to /editproduct.php via IP whitelisting or VPN requirements if possible, reducing phishing attack surface. Each control trades defense depth for operational complexity - CSP may break legitimate functionality if the application uses inline scripts and requires testing before deployment.
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 stems from improper input validation in a PHP-based food ordering application. The /editproduct.php file fails to sanitize user-supplied input for the product name, category, and price parameters before reflecting them in responses, creating a classic reflected XSS condition (CWE-79: Improper Neutralization of Input During Web Page Generation). The attack vector is network-based and unauthenticated (AV:N/PR:N), meaning an attacker can craft malicious URLs and deliver them to users without authentication. However, exploitation requires user interaction (UI:P), limiting the attack surface to scenarios where an application user or administrator visits a malicious link containing injected script payloads.
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 vulnerability was detected in code-projects Simple Food Ordering System 1.0. The affected element is an unknown function of the file /editproduct.php. Performing manipulation of the argument pname/category/price results in cross site scripting. The attack may be initiated remotely. The exploit is now public and may be used.
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
Stored cross-site scripting (XSS) in Simple Food Ordering System 1.0 allows remote attackers to inject malicious scripts
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