CVE-2026-0566

4.7 MEDIUM

📋 TL;DR

This vulnerability allows remote attackers to upload arbitrary files to the code-projects CMS 1.0 system via the image parameter in the /admin/edit_posts.php file. This affects all installations of code-projects CMS 1.0 with the vulnerable file accessible. Attackers can potentially upload malicious files to compromise the system.

💻 Affected Systems

Products:
  • code-projects Content Management System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Requires /admin/edit_posts.php to be accessible. Default installations are vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

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

🟠

Likely Case

Webshell upload allowing persistent backdoor access, defacement, or data exfiltration.

🟢

If Mitigated

Limited impact with proper file upload restrictions and web application firewalls in place.

🌐 Internet-Facing: HIGH - Remote exploitation possible without authentication.
🏢 Internal Only: MEDIUM - Internal attackers could exploit if they have network access.

🎯 Exploit Status

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

Public exploit available on GitHub. Simple file upload manipulation.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

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

Restart Required: No

Instructions:

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

🔧 Temporary Workarounds

Restrict file uploads

all

Implement strict file type validation and size limits for uploads.

Modify /admin/edit_posts.php to validate file extensions and MIME types

Disable vulnerable endpoint

all

Temporarily disable or restrict access to /admin/edit_posts.php.

Add authentication requirement or IP restriction to the file

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block malicious file uploads
  • Monitor file upload directories for suspicious files and implement file integrity monitoring

🔍 How to Verify

Check if Vulnerable:

Attempt to upload a non-image file via /admin/edit_posts.php image parameter. If accepted, system is vulnerable.

Check Version:

Check CMS version in admin panel or configuration files.

Verify Fix Applied:

Test file upload with restricted extensions. Only allowed image types should be accepted.

📡 Detection & Monitoring

Log Indicators:

  • Unusual file uploads to /admin/edit_posts.php
  • Uploads of non-image file types

Network Indicators:

  • POST requests to /admin/edit_posts.php with file uploads
  • Unusual outbound connections after upload

SIEM Query:

source="web_logs" AND uri="/admin/edit_posts.php" AND method="POST" AND file_upload="true"

🔗 References

📤 Share & Export