CVE-2024-6054
📋 TL;DR
The Auto Featured Image WordPress plugin allows authenticated users with contributor-level permissions or higher to upload arbitrary files due to missing file type validation. This vulnerability can lead to remote code execution on affected WordPress sites. All versions up to and including 1.2 are vulnerable.
💻 Affected Systems
- Auto Featured Image WordPress Plugin
📦 What is this software?
Auto Featured Image by Auto Featured Image Project
⚠️ Risk & Real-World Impact
Worst Case
Remote code execution leading to complete server compromise, data theft, malware deployment, or site defacement.
Likely Case
Unauthorized file upload leading to webshell installation and limited server access.
If Mitigated
File upload attempts are blocked or logged, with no successful exploitation.
🎯 Exploit Status
Exploitation requires contributor-level access. The vulnerability is straightforward to exploit once authenticated.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 1.3 or later
Vendor Advisory: https://plugins.trac.wordpress.org/browser/auto-featured-image/tags/1.3/
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find Auto Featured Image plugin. 4. Click 'Update Now' if update is available. 5. If no update appears, manually download version 1.3+ from WordPress.org and replace the plugin files.
🔧 Temporary Workarounds
Disable Plugin
allTemporarily disable the vulnerable plugin until patched.
wp plugin deactivate auto-featured-image
Restrict User Roles
allTemporarily remove contributor roles or restrict file upload permissions.
🧯 If You Can't Patch
- Implement web application firewall (WAF) rules to block suspicious file uploads.
- Enable file integrity monitoring on WordPress uploads directory.
🔍 How to Verify
Check if Vulnerable:
Check plugin version in WordPress admin under Plugins > Installed Plugins. If version is 1.2 or lower, you are vulnerable.
Check Version:
wp plugin get auto-featured-image --field=version
Verify Fix Applied:
Verify plugin version is 1.3 or higher after update.
📡 Detection & Monitoring
Log Indicators:
- Unusual file uploads to /wp-content/uploads/ via plugin endpoints
- POST requests to auto-featured-image plugin URLs with file parameters
Network Indicators:
- HTTP POST requests containing file uploads to plugin-specific endpoints
SIEM Query:
source="web_logs" AND (uri="*auto-featured-image*" AND method="POST" AND (file_upload="true" OR contains(content_type, "multipart/form-data")))
🔗 References
- https://plugins.trac.wordpress.org/browser/auto-featured-image/tags/1.2/auto-featured-image.php#L167
- https://www.wordfence.com/threat-intel/vulnerabilities/id/4d1512c2-75c1-405b-8bb4-f42ec69159a7?source=cve
- https://plugins.trac.wordpress.org/browser/auto-featured-image/tags/1.2/auto-featured-image.php#L167
- https://www.wordfence.com/threat-intel/vulnerabilities/id/4d1512c2-75c1-405b-8bb4-f42ec69159a7?source=cve