CVE-2024-4479
📋 TL;DR
The Jeg Elementor Kit WordPress plugin has a stored XSS vulnerability that allows authenticated attackers with Contributor access or higher to inject malicious scripts into website pages. These scripts execute whenever users visit the compromised pages, potentially stealing credentials or performing unauthorized actions. All WordPress sites using this plugin up to version 2.6.5 are affected.
💻 Affected Systems
- Jeg Elementor Kit WordPress Plugin
📦 What is this software?
⚠️ Risk & Real-World Impact
Worst Case
Attackers could steal administrator credentials, deface websites, redirect users to malicious sites, or perform actions on behalf of authenticated users, potentially leading to complete site compromise.
Likely Case
Attackers inject malicious JavaScript to steal user session cookies or credentials, perform unauthorized actions, or display malicious content to visitors.
If Mitigated
With proper input validation and output escaping, the vulnerability would be prevented, and only properly sanitized content would be displayed to users.
🎯 Exploit Status
Exploitation requires authenticated access but is straightforward once an attacker has Contributor privileges or higher.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 2.6.6 or later
Vendor Advisory: https://wordpress.org/plugins/jeg-elementor-kit/#developers
Restart Required: No
Instructions:
1. Log into WordPress admin panel
2. Navigate to Plugins → Installed Plugins
3. Find 'Jeg Elementor Kit'
4. Click 'Update Now' if update is available
5. Alternatively, download version 2.6.6+ from WordPress repository and manually update
🔧 Temporary Workarounds
Disable vulnerable widgets
allTemporarily disable the JKit - Tabs and JKit - Accordion widgets in Elementor settings
Remove plugin
allCompletely remove the Jeg Elementor Kit plugin if not essential
🧯 If You Can't Patch
- Restrict user roles: Only grant Contributor access or higher to trusted users
- Implement web application firewall (WAF) rules to block XSS payloads
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin → Plugins → Installed Plugins for Jeg Elementor Kit version
Check Version:
wp plugin list --name=jeg-elementor-kit --field=version
Verify Fix Applied:
Verify plugin version is 2.6.6 or higher in WordPress admin panel
📡 Detection & Monitoring
Log Indicators:
- Unusual POST requests to WordPress admin-ajax.php with sg_general_toggle_tab_enable or sg_accordion_style parameters containing script tags
- Multiple failed login attempts followed by successful Contributor-level login
Network Indicators:
- Inbound requests with JavaScript payloads in form parameters
- Outbound connections to suspicious domains after page loads
SIEM Query:
source="wordpress.log" AND (sg_general_toggle_tab_enable OR sg_accordion_style) AND (script OR javascript OR onload OR onerror)
🔗 References
- https://plugins.trac.wordpress.org/browser/jeg-elementor-kit/tags/2.6.5/class/elements/views/class-accordion-view.php#L22
- https://plugins.trac.wordpress.org/browser/jeg-elementor-kit/tags/2.6.5/class/elements/views/class-tabs-view.php#L88
- https://plugins.trac.wordpress.org/browser/jeg-elementor-kit/tags/2.6.5/class/elements/views/class-view-abstract.php#L195
- https://plugins.trac.wordpress.org/changeset/3102228/
- https://wordpress.org/plugins/jeg-elementor-kit/#developers
- https://www.wordfence.com/threat-intel/vulnerabilities/id/c6048ba9-671f-4729-9618-d7a0556a31e6?source=cve
- https://plugins.trac.wordpress.org/browser/jeg-elementor-kit/tags/2.6.5/class/elements/views/class-accordion-view.php#L22
- https://plugins.trac.wordpress.org/browser/jeg-elementor-kit/tags/2.6.5/class/elements/views/class-tabs-view.php#L88
- https://plugins.trac.wordpress.org/browser/jeg-elementor-kit/tags/2.6.5/class/elements/views/class-view-abstract.php#L195
- https://plugins.trac.wordpress.org/changeset/3102228/
- https://wordpress.org/plugins/jeg-elementor-kit/#developers
- https://www.wordfence.com/threat-intel/vulnerabilities/id/c6048ba9-671f-4729-9618-d7a0556a31e6?source=cve