Food Ordering System
CVE-2025-12314
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain admin credentials
-
DeliveryAuthenticate to admin panel
-
ExploitAccess /admin/deleteitem.php
-
ExecutionInject SQL via itemID parameter
-
PersistExecute arbitrary SQL query
-
ImpactManipulate or exfiltrate database
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | Exploitation requires authentication as a high-privilege administrator user (PR:H from CVSS vector). The attacker must have valid login credentials or an active admin session to access /admin/deleteitem.php. The SQL injection occurs only when the delete item function is invoked with a crafted itemID parameter. No special server configuration or non-default settings are explicitly mentioned; the vulnerability appears present in default installations. The limiting factor is administrative access control - this is not a pre-authentication vulnerability and cannot be exploited by anonymous users or users with standard customer roles. |
| Impact | Risk is LOW in real-world deployments despite public exploit availability. The CVSS 4.0 vector reveals critical limiting factors: PR:H (requires high-privilege administrator), AV:N (network-accessible but gated by authentication), AC:L (attack is trivial once authenticated), and VC:L/VI:L/VA:L (impact is limited to confidentiality, integrity, and availability of only the item being deleted, not the full database or system). EPSS 0.03% (7th percentile) confirms minimal exploitation probability in the wild, suggesting the exploit is available but not broadly weaponized. The combination of mandatory admin authentication and low attack complexity creates a scenario where the vulnerability is most relevant to insider threats or compromised administrator accounts, not opportunistic remote attacks. The public POC lowers the technical bar for exploitation once an attacker gains admin access, but this is a control-plane issue (admin compromise) rather than a zero-trust breach vector. |
| Exploit ScenarioDerived | An attacker obtains or compromises administrator credentials through phishing or password reuse. The attacker logs into the admin panel and navigates to the delete item functionality. They craft a malicious itemID value (e.g., itemID=1' OR '1'='1) in the HTTP request to /admin/deleteitem.php, injecting SQL that either deletes multiple items, extracts data from other tables, or modifies database structure. The public POC from GitHub (kaka00666/food-ordering-cve) provides ready-made payloads, eliminating the need for custom exploitation code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
SQL injection in code-projects Food Ordering System 1.0 allows remote attackers with high-level administrative privileges to execute arbitrary SQL commands via the itemID parameter in /admin/deleteitem.php. Despite public exploit availability, real-world risk is minimal due to requirement for authenticated administrator access and low CVSS impact scope (CVSS 2.0, EPSS 0.03%). The vulnerability affects only the administrative interface and does not escalate privileges or compromise confidentiality at scale.
RemediationAI
No vendor-released patch identified at time of analysis. Immediate remediation requires manual code review and patching of /admin/deleteitem.php to implement parameterized queries or prepared statements for the itemID parameter. Organizations using Food Ordering System 1.0 should contact code-projects directly through https://code-projects.org/ to request a patched version. As interim compensating controls: (1) restrict /admin/ endpoint access to a whitelist of trusted IP addresses or VPN, reducing exposure of the admin interface to potential attacker reconnaissance; (2) enforce strong, multi-factor authentication for all administrator accounts to reduce likelihood of credential compromise; (3) implement Web Application Firewall (WAF) rules to block SQL injection patterns in the itemID parameter (e.g., blocking single quotes, UNION operators, comment syntax); (4) enable database query logging and monitoring for suspicious SQL patterns; (5) limit database user permissions associated with the Food Ordering System application to only INSERT, UPDATE, DELETE on necessary tables, preventing exfiltration via injected SELECT statements. Note that WAF rules may introduce false positives if itemID legitimately contains special characters - test thoroughly before production 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 exists in PHP code at /admin/deleteitem.php, where user-supplied input from the itemID parameter is insufficiently sanitized before being used in SQL query construction. This represents improper input validation (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component). The affected application is code-projects Food Ordering System 1.0, a web-based food ordering platform written in PHP. The SQL injection occurs in a delete operation, likely allowing manipulation of database queries through specially crafted itemID values that inject SQL syntax.
Know when 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:H/UI:N/VC:L/VI:L/VA:L/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 found in code-projects Food Ordering System 1.0. The impacted element is an unknown function of the file /admin/deleteitem.php. Performing a manipulation of the argument itemID results in sql injection. Remote exploitation of the attack is possible. The exploit has been made public and could 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
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Affected Products (CPE)CVE.org
More in Food Ordering System
View allA SQL Injection vulnerability detected in Food Ordering System v1.0 allows attackers to run commands on the database by
SQL injection in SourceCodester Food Ordering System 1.0 via the custom parameter in /purchase.php allows unauthenticate
A vulnerability was found in SourceCodester Food Ordering System 1.0. Rated medium severity (CVSS 5.3), this vulnerabili
A vulnerability has been found in SourceCodester Food Ordering System 1.0. Rated medium severity (CVSS 5.3), this vulner
SQL injection in code-projects Food Ordering System 1.0 allows high-privileged remote attackers to manipulate the itemPr
Stored cross-site scripting in CodeAstro Food Ordering System 1.0 allows authenticated admin users to inject arbitrary J
Stack-based buffer overflow in CodeAstro Food Ordering System 1.0 allows local attackers with user privileges to corrupt
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB