CVE-2024-6340
📋 TL;DR
This vulnerability allows authenticated WordPress users with contributor-level access or higher to inject malicious scripts into web pages using the Premium Addons for Elementor plugin's Countdown widget. The injected scripts execute whenever users visit the compromised pages, enabling attackers to steal session cookies, redirect users, or perform other malicious actions. All WordPress sites using vulnerable versions of this plugin are affected.
💻 Affected Systems
- Premium Addons for Elementor WordPress plugin
📦 What is this software?
⚠️ Risk & Real-World Impact
Worst Case
Attackers could steal administrator credentials, take over the WordPress site, install backdoors, deface the site, or redirect visitors to malicious sites.
Likely Case
Attackers with contributor access inject malicious scripts to steal user session cookies, potentially compromising user accounts and enabling further attacks.
If Mitigated
With proper user role management and content review processes, the impact is limited to potential defacement or minor script injection that gets caught during content moderation.
🎯 Exploit Status
Exploitation requires authenticated access but is technically simple once an attacker has contributor-level credentials.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 4.10.36 and later
Vendor Advisory: https://wordpress.org/plugins/premium-addons-for-elementor/#developers
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Go to Plugins → Installed Plugins. 3. Find 'Premium Addons for Elementor'. 4. Click 'Update Now' if available. 5. If not, download version 4.10.36+ from WordPress.org and manually update.
🔧 Temporary Workarounds
Disable Countdown Widget
allTemporarily disable the vulnerable Countdown widget until patching is possible
Navigate to Elementor → Settings → Advanced → Disable Countdown widget
Restrict User Roles
allTemporarily remove contributor-level editing permissions from untrusted users
Use WordPress role management plugins or manually edit user capabilities
🧯 If You Can't Patch
- Implement strict content review process for all posts/pages created by contributors
- Use web application firewall (WAF) rules to block XSS payloads targeting the Countdown widget
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin → Plugins → Installed Plugins → Premium Addons for Elementor version. If version is 4.10.35 or lower, you are vulnerable.
Check Version:
wp plugin list --name='premium-addons-for-elementor' --field=version (if WP-CLI installed)
Verify Fix Applied:
After updating, verify the plugin version shows 4.10.36 or higher in WordPress admin.
📡 Detection & Monitoring
Log Indicators:
- Unusual POST requests to WordPress admin-ajax.php with countdown-related parameters
- Multiple failed login attempts followed by successful contributor-level login
Network Indicators:
- Outbound connections to suspicious domains from your WordPress site
- Unusual JavaScript payloads in HTTP requests
SIEM Query:
source="wordpress.log" AND ("premium-countdown-timer" OR "countdown_widget") AND ("script" OR "javascript" OR "onload" OR "onerror")
🔗 References
- https://plugins.trac.wordpress.org/browser/premium-addons-for-elementor/trunk/assets/frontend/js/premium-countdown-timer.js#L113
- https://plugins.trac.wordpress.org/browser/premium-addons-for-elementor/trunk/assets/frontend/js/premium-countdown-timer.js#L31
- https://plugins.trac.wordpress.org/changeset/3111117/
- https://wordpress.org/plugins/premium-addons-for-elementor/#developers
- https://www.wordfence.com/threat-intel/vulnerabilities/id/9ed80507-f3e5-45a8-9498-8cebf97155ff?source=cve
- https://plugins.trac.wordpress.org/browser/premium-addons-for-elementor/trunk/assets/frontend/js/premium-countdown-timer.js#L113
- https://plugins.trac.wordpress.org/browser/premium-addons-for-elementor/trunk/assets/frontend/js/premium-countdown-timer.js#L31
- https://plugins.trac.wordpress.org/changeset/3111117/
- https://wordpress.org/plugins/premium-addons-for-elementor/#developers
- https://www.wordfence.com/threat-intel/vulnerabilities/id/9ed80507-f3e5-45a8-9498-8cebf97155ff?source=cve