CVE-2025-12301

7.3 HIGH

📋 TL;DR

This vulnerability allows remote attackers to upload arbitrary files to the Simple Food Ordering System 1.0 via the photo parameter in /editproduct.php. This affects all installations of the software that have the vulnerable component accessible. Attackers can exploit this to upload malicious files including webshells.

💻 Affected Systems

Products:
  • code-projects Simple Food Ordering System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all installations with /editproduct.php accessible. No authentication bypass required based on available information.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete system compromise via webshell upload leading to remote code execution, data theft, and lateral movement within the network.

🟠

Likely Case

Webshell upload allowing persistent backdoor access, file manipulation, and potential data exfiltration.

🟢

If Mitigated

File upload attempts blocked or sanitized, preventing malicious file execution while maintaining legitimate functionality.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Public exploit available on GitHub. Simple HTTP POST request with malicious file upload.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://code-projects.org/

Restart Required: No

Instructions:

No official patch available. Check vendor website for updates or consider alternative software.

🔧 Temporary Workarounds

Restrict file uploads

all

Implement server-side validation of uploaded files including file type checking, size limits, and content inspection.

Disable vulnerable endpoint

linux

Block or remove access to /editproduct.php if not required for functionality.

# Apache: RewriteRule ^editproduct\.php$ - [F]
# Nginx: location ~ /editproduct\.php$ { return 403; }

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block malicious file upload patterns
  • Isolate the system in a DMZ with strict network segmentation and monitoring

🔍 How to Verify

Check if Vulnerable:

Attempt to upload a test file (e.g., .txt) to /editproduct.php with photo parameter. If accepted without proper validation, system is vulnerable.

Check Version:

Check software version in admin panel or configuration files

Verify Fix Applied:

Test file upload with various file types - only allowed types should be accepted. Malicious extensions should be blocked.

📡 Detection & Monitoring

Log Indicators:

  • Multiple file upload attempts to /editproduct.php
  • Uploads of unusual file types (php, exe, etc.)
  • Large file uploads

Network Indicators:

  • HTTP POST requests to /editproduct.php with file uploads
  • Unusual outbound connections after file upload

SIEM Query:

source="web_logs" AND uri="/editproduct.php" AND method="POST" AND (file_extension="php" OR file_extension="exe" OR file_extension="jsp")

🔗 References

📤 Share & Export