CVE-2024-52398

9.1 CRITICAL

📋 TL;DR

This vulnerability allows attackers to upload arbitrary files to WordPress sites running the Halyra CDI plugin. Attackers can upload malicious files like PHP shells to achieve remote code execution. All WordPress sites using vulnerable versions of the CDI plugin are affected.

💻 Affected Systems

Products:
  • Halyra CDI (Collect and Deliver Interface for WooCommerce)
Versions: All versions up to and including 5.5.3
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress with the CDI plugin installed and activated.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete server compromise leading to data theft, ransomware deployment, or website defacement through remote code execution.

🟠

Likely Case

Attackers upload web shells to gain persistent access, steal sensitive data, or use the server for malicious activities.

🟢

If Mitigated

File uploads are blocked or restricted to safe types, preventing malicious file execution.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploitation is straightforward with publicly available proof-of-concept code.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 5.5.4 or later

Vendor Advisory: https://patchstack.com/database/vulnerability/collect-and-deliver-interface-for-woocommerce/wordpress-cdi-plugin-5-5-3-arbitrary-file-upload-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find 'CDI' plugin. 4. Click 'Update Now' if available. 5. Alternatively, download version 5.5.4+ from WordPress repository and manually update.

🔧 Temporary Workarounds

Disable CDI Plugin

all

Temporarily deactivate the vulnerable plugin until patched.

wp plugin deactivate cdi

Restrict File Uploads via .htaccess

linux

Block execution of uploaded files in the uploads directory.

<FilesMatch "\.(php|php5|php7|phtml|phar)$">
  Order Allow,Deny
  Deny from all
</FilesMatch>

🧯 If You Can't Patch

  • Disable the CDI plugin immediately.
  • Implement web application firewall (WAF) rules to block file uploads to the plugin's endpoints.

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin > Plugins > Installed Plugins for CDI version 5.5.3 or lower.

Check Version:

wp plugin get cdi --field=version

Verify Fix Applied:

Confirm CDI plugin version is 5.5.4 or higher in WordPress admin.

📡 Detection & Monitoring

Log Indicators:

  • Unusual file uploads to /wp-content/uploads/cdi/ or similar paths
  • POST requests to CDI-specific endpoints with file parameters

Network Indicators:

  • HTTP POST requests with file uploads to CDI plugin URLs

SIEM Query:

source="web_logs" AND (uri_path="/wp-admin/admin-ajax.php" OR uri_path CONTAINS "cdi") AND method="POST" AND (user_agent CONTAINS "curl" OR user_agent CONTAINS "wget" OR user_agent="-")

🔗 References

📤 Share & Export