Code-Projects Simple Food Ordering System Unrestricted File Upload Vulnerability in editproduct.php

Vulnerability

A file upload vulnerability has been identified in version 1.0 of the Code-Projects Simple Food Ordering System. The issue resides in the editproduct.php file, where the photo argument is manipulated to allow unrestricted file uploads. This vulnerability can be exploited remotely, without any authentication, leading to potential server compromise through the execution of uploaded malicious files, such as web shells.

Impact

Exploitation of this vulnerability allows for unrestricted file uploads, which can be used to upload and execute malicious files on the server. This could lead to remote code execution, unauthorized access, and a complete compromise of the system.

Reproduction

To reproduce this vulnerability, access the editproduct.php file upload functionality. Upload a malicious PHP file, such as a web shell, disguised with a double extension. After uploading, the file can be accessed and executed on the server.

Remediation

It is recommended to implement strict file validation measures, including whitelisting allowed file types, scanning for malicious content, and storing uploaded files in secure locations. Regular security updates and audits of the file upload functionality are also advised.

Added: Oct 27, 2025, 6:26 PM
Updated: Oct 27, 2025, 6:26 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
6.0
remediation
0.0
relevance
0.8
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.