SourceCodester Food Menu Manager Unrestricted File Upload Vulnerability

Vulnerability

A critical unrestricted file upload vulnerability has been identified in SourceCodester Food Menu Manager version 1.0. The issue resides in the file endpoint/update.php, where the upload logic fails to properly validate file types. This flaw allows attackers to bypass image type detection using a crafted GIF file and upload malicious PHP scripts, such as Trojans, that can execute arbitrary code on the server.

Impact

Exploitation of this vulnerability allows for unrestricted file uploads, which can lead to the execution of uploaded malicious files, such as PHP scripts, on the server.

Reproduction

To reproduce this vulnerability, upload a file through the update.php endpoint using the POST method. Include a crafted GIF file that bypasses the image type detection. The uploaded file can then be executed as a PHP script, allowing for arbitrary code execution.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
10.0
exploitability
6.3
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.