CVE-2024-5049

6.3 MEDIUM

📋 TL;DR

This critical vulnerability in Codezips E-Commerce Site 1.0 allows remote attackers to upload arbitrary files via the profilepic parameter in admin/editproduct.php. This unrestricted file upload can lead to remote code execution or system compromise. All installations of version 1.0 with the vulnerable file are affected.

💻 Affected Systems

Products:
  • Codezips E-Commerce Site
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Requires admin/editproduct.php file to be present and accessible.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Remote code execution leading to complete system compromise, data theft, and potential ransomware deployment.

🟠

Likely Case

Webshell upload allowing persistent backdoor access, data exfiltration, and further lateral movement.

🟢

If Mitigated

File upload blocked, preventing exploitation while maintaining functionality.

🌐 Internet-Facing: HIGH - Attack can be launched remotely without authentication.
🏢 Internal Only: MEDIUM - Still exploitable from internal networks but requires network access.

🎯 Exploit Status

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

Exploit details publicly disclosed on GitHub, making trivial exploitation likely.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None found

Restart Required: No

Instructions:

No official patch available. Consider workarounds or migrating to supported software.

🔧 Temporary Workarounds

File Upload Restriction

all

Implement strict file type validation and size limits for uploads in admin/editproduct.php

Modify PHP code to validate file extensions (e.g., only .jpg, .png)
Implement file size limits
Use server-side MIME type checking

Access Control

all

Restrict access to admin/editproduct.php to trusted IP addresses only

Add .htaccess rules for Apache: Order Deny,Allow
Deny from all
Allow from 192.168.1.0/24
Configure web server IP restrictions

🧯 If You Can't Patch

  • Implement Web Application Firewall (WAF) rules to block file uploads to admin/editproduct.php
  • Disable or remove admin/editproduct.php file if not required

🔍 How to Verify

Check if Vulnerable:

Check if admin/editproduct.php exists and accepts file uploads without proper validation.

Check Version:

Check software version in configuration files or admin panel.

Verify Fix Applied:

Attempt to upload non-image files to profilepic parameter; should be rejected.

📡 Detection & Monitoring

Log Indicators:

  • Unusual file uploads to admin/editproduct.php
  • Large or unexpected file types in upload directory
  • Multiple failed upload attempts

Network Indicators:

  • POST requests to admin/editproduct.php with file uploads
  • Unusual outbound connections from web server

SIEM Query:

source="web_logs" AND uri="/admin/editproduct.php" AND method="POST" AND size>1000000

🔗 References

📤 Share & Export