CVE-2026-116603 Details
Description
A flaw has been found in SourceCodester Online Food Ordering System 1.0. Impacted is an unknown function of the file admin/add_food.php. Executing a manipulation of the argument image can lead to unrestricted upload. The attack may be performed from remote. The exploit has been published and may be used.
A vulnerability allowing unrestricted file upload has been identified in SourceCodester Online Food Ordering System version 1.0. The issue resides in the admin/add_food.php file, where the image upload functionality fails to properly validate file extensions or content. This flaw enables remote attackers to upload malicious files, such as PHP scripts, which can be executed on the server. The vulnerability requires an authenticated admin session, but can potentially be exploited by chaining with an authentication bypass issue.
To address this vulnerability, implement a strict allow-list for image file extensions, ensuring only safe formats like JPG, JPEG, PNG, GIF, and WEBP are accepted. Validate that uploaded files are genuine images using a function like getimagesize(). Store uploaded files outside the webroot or in a directory where PHP execution is disabled, and rename files to prevent predictable naming. Additionally, consider adding an .htaccess rule to disable PHP execution in the images directory.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 27, 2026CISA-ADP
Assessed Nov 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/CyberShailendra/SourceCodesterUnrestrictedFileUploadLeadingtoRemoteCode-Execution | CISA-ADP | ExploitTechnical Description |
| https://github.com/CyberShailendra/SourceCodesterUnrestrictedFileUploadLeadingtoRemoteCode-Execution | [email protected] | ExploitTechnical Description |
| https://vuldb.com/cve/CVE-2026-116603 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/1022954 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/426509 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/426509/cti | [email protected] | AdvisoryPermission Required |
| https://www.sourcecodester.com/ | [email protected] | Vendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-284 | Improper Access Control | [email protected] |
| CWE-434 | Unrestricted Upload of File with Dangerous Type | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| SourceCodester Online Food Ordering System | All versions |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 2, 2026 | CVE Modified | CISA-ADP |
| Oct 27, 2026 | New CVE Received | [email protected] |
Volerion