CVE-2024-52416

10.0 CRITICAL

📋 TL;DR

This critical vulnerability in the WordPress Debug Tool plugin allows attackers to upload malicious web shell files to web servers without proper authorization. It affects all WordPress sites running Debug Tool plugin versions up to 2.2, enabling remote code execution.

💻 Affected Systems

Products:
  • WordPress Debug Tool plugin
Versions: n/a through 2.2
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all WordPress installations with the vulnerable Debug Tool plugin active, regardless of WordPress version or configuration.

⚠️ 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 allowing attackers to execute arbitrary code, steal data, install backdoors, and pivot to other systems on the network.

🟠

Likely Case

Attackers upload web shells to gain persistent access, deface websites, install malware, or use the server for malicious activities like cryptocurrency mining or DDoS attacks.

🟢

If Mitigated

With proper web application firewalls and file upload restrictions, exploitation attempts would be blocked, though the vulnerability remains present.

🌐 Internet-Facing: HIGH - WordPress sites are typically internet-facing, making them directly accessible to attackers worldwide.
🏢 Internal Only: MEDIUM - Internal WordPress installations could still be targeted by internal threats or compromised external systems.

🎯 Exploit Status

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

The vulnerability allows unauthenticated file uploads, making exploitation trivial. Public exploit details are available in security advisories.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.3 or later

Vendor Advisory: https://patchstack.com/database/vulnerability/debug-tool/wordpress-debug-tool-plugin-2-2-remote-code-execution-vulnerability?_s_id=cve

Restart Required: No

Instructions:

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

🔧 Temporary Workarounds

Disable Debug Tool Plugin

all

Temporarily deactivate the vulnerable plugin until patching is possible

wp plugin deactivate debug-tool

Restrict File Uploads via .htaccess

linux

Block PHP file uploads in WordPress upload directories

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

🧯 If You Can't Patch

  • Immediately disable or remove the Debug Tool plugin from all WordPress installations
  • Implement web application firewall rules to block file upload attempts to Debug Tool endpoints

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for Debug Tool version. If version is 2.2 or earlier, you are vulnerable.

Check Version:

wp plugin get debug-tool --field=version

Verify Fix Applied:

Verify Debug Tool plugin version is 2.3 or higher in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • POST requests to /wp-content/plugins/debug-tool/ upload endpoints
  • Unusual file uploads to WordPress directories
  • PHP web shell files in uploads folder

Network Indicators:

  • HTTP requests with file uploads to Debug Tool plugin paths
  • Unusual outbound connections from web server after file uploads

SIEM Query:

source="web_server" AND (uri_path="/wp-content/plugins/debug-tool/*" AND method="POST")

🔗 References

📤 Share & Export