CVE-2024-54380
📋 TL;DR
This path traversal vulnerability in the WP Cookies Enabler WordPress plugin allows attackers to include local PHP files via directory traversal sequences. It affects all WordPress sites running WP Cookies Enabler version 1.0.1 or earlier. Successful exploitation could lead to sensitive file disclosure or remote code execution.
💻 Affected Systems
- WP Cookies Enabler WordPress Plugin
⚠️ 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.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- Consider updating to the latest version as a precaution
⚠️ Risk & Real-World Impact
Worst Case
Remote code execution leading to complete site compromise, data theft, and server takeover.
Likely Case
Sensitive file disclosure (configuration files, database credentials) and limited code execution.
If Mitigated
Unauthorized file read of non-sensitive files if proper file permissions are configured.
🎯 Exploit Status
Path traversal vulnerabilities are commonly exploited and require minimal technical skill.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 1.0.2 or later
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find WP Cookies Enabler. 4. Click 'Update Now' if update available. 5. If no update, deactivate and delete plugin, then install fresh version from WordPress repository.
🔧 Temporary Workarounds
Disable Plugin
allTemporarily disable the vulnerable plugin until patched version is available.
wp plugin deactivate wp-cookies-enabler
Web Application Firewall Rule
allBlock path traversal sequences in web requests.
# Add WAF rule to block ../ sequences in URL parameters
🧯 If You Can't Patch
- Remove plugin completely and use alternative cookie consent solution
- Implement strict file permissions and disable PHP execution in upload directories
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin panel > Plugins > Installed Plugins for WP Cookies Enabler version 1.0.1 or earlier.
Check Version:
wp plugin get wp-cookies-enabler --field=version
Verify Fix Applied:
Verify plugin version is 1.0.2 or later in WordPress admin panel.
📡 Detection & Monitoring
Log Indicators:
- HTTP requests containing ../ sequences
- Access to unexpected PHP files
- Failed file inclusion attempts
Network Indicators:
- Unusual file paths in URL parameters
- Requests to plugin-specific endpoints with traversal sequences
SIEM Query:
web.url:*../* AND (web.url:*wp-cookies-enabler* OR web.url:*cookies-enabler*)