# CVE-2026-116602: SourceCodester Online Food Ordering System path traversal in delete.php

Source: https://junglewise.ai/threats/cve-2026-116602-a-vulnerability-was-detected-in-sourcecodester-online-food  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-26. Updated: 2026-10-27  
License: CC BY 4.0 with a link back

CVE-2026-116602 · Severity: medium · CVSS 6.5 · Published 2026-10-26

SourceCodester's Online Food Ordering System, a web-based restaurant ordering platform written in PHP and MySQL, contains a path traversal vulnerability in its admin file deletion function. An attacker can manipulate the image_name parameter to delete arbitrary files on the server, such as configuration files, causing the application to crash and become unavailable. No authentication is required to exploit this vulnerability.

Technologies: [SourceCodester Online Food Ordering System](https://junglewise.ai/threats/technologies/online-food-ordering-system). Vendors: [SourceCodester](https://junglewise.ai/threats/vendors/sourcecodester).

## Quick answers

**Is CVE-2026-116602 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-116602 being exploited in the wild.

**How severe is CVE-2026-116602?** Medium severity, with a CVSS score of 6.5, published 26 October 2026.

**Which products and versions are affected?** SourceCodester Online Food Ordering System 1.0.

**Is there a fix for CVE-2026-116602?** No fixed version is recorded yet. Implement input validation using basename() to strip path components from the filename, then verify via realpath() that the resolved path remains within the intended upload directory before calling unlink(). Add authentication checks to the affected admin endpoints to prevent unauthenticated access.</anigation>
<parameter name="timeline">[{"kind":"disclosed","at":"2026-10-10"},{"kind":"advisory","at":"2026-10-26"}] If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-116602 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-116602?** Check whether you run SourceCodester Online Food Ordering System at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix


Implement input validation using basename() to strip path components from the filename, then verify via realpath() that the resolved path remains within the intended upload directory before calling unlink(). Add authentication checks to the affected admin endpoints to prevent unauthenticated access.</anigation>
<parameter name="timeline">[{"kind":"disclosed","at":"2026-10-10"},{"kind":"advisory","at":"2026-10-26"}]

## Technical details

A path traversal flaw in admin/delete.php fails to sanitize the image_name GET parameter before passing it to PHP's unlink() function. An attacker can use sequences like ../../config/constants.php to traverse outside the intended upload directory and delete application files. The vulnerability affects multiple admin endpoints (delete_category.php, update_food.php, update_category.php) with the same pattern and requires no authentication.

## Affected products

- SourceCodester Online Food Ordering System 1.0

## References

- [https://github.com/CyberShailendra/sourcecodesterArbitraryFileDeletion-via-PathTraversal](https://github.com/CyberShailendra/sourcecodesterArbitraryFileDeletion-via-PathTraversal)
- [https://vuldb.com/cve/CVE-2026-116602](https://vuldb.com/cve/CVE-2026-116602)

## Related threats

- [SourceCodester Online Food Ordering System client-side price enforcement](https://junglewise.ai/threats/cve-2026-116605-a-vulnerability-was-found-in-sourcecodester-online-food-ordering)
- [SourceCodester Online Food Ordering System missing authentication in admin delete endpoints](https://junglewise.ai/threats/cve-2026-116604-a-vulnerability-has-been-found-in-sourcecodester-online-food)
- [SourceCodester Online Food Ordering System unrestricted file upload in add_food.php](https://junglewise.ai/threats/cve-2026-116603-a-flaw-has-been-found-in-sourcecodester-online-food-ordering)
- [SourceCodester Online Food Ordering System stored XSS in category image upload](https://junglewise.ai/threats/cve-2026-92385-sourcecodester-online-food-ordering-system-stored-xss-in-category)
- [SourceCodester Online Food Ordering System local file inclusion in index.php](https://junglewise.ai/threats/cve-2026-10694-sourcecodester-online-food-ordering-system-local-file-inclusion)
