CVE-2024-4458

6.4 MEDIUM

📋 TL;DR

The Themesflat Addons For Elementor WordPress plugin has a stored XSS vulnerability that allows authenticated attackers with contributor-level 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.1.1 are affected.

💻 Affected Systems

Products:
  • Themesflat Addons For Elementor WordPress plugin
Versions: All versions up to and including 2.1.1
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress with Elementor page builder and the vulnerable plugin installed. Contributor-level access or higher is needed for exploitation.

📦 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 as authenticated users, potentially leading to complete site compromise.

🟠

Likely Case

Attackers with contributor access inject malicious scripts to steal user session cookies or credentials, leading to account takeover and unauthorized content modification.

🟢

If Mitigated

With proper user role management and input validation, impact is limited to content defacement or minor data exposure from the compromised user's context.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires authenticated access but is straightforward once an attacker has contributor privileges. URL parameter manipulation in vulnerable widgets enables script injection.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.1.2 or later

Vendor Advisory: https://wordpress.org/plugins/themesflat-addons-for-elementor/

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'Themesflat Addons For Elementor'. 4. Click 'Update Now' if available. 5. If no update appears, manually download version 2.1.2+ from WordPress.org and replace the plugin files.

🔧 Temporary Workarounds

Remove Contributor Access

all

Temporarily remove contributor-level access from untrusted users to prevent exploitation while patching.

Disable Vulnerable Widgets

all

Identify and disable the specific vulnerable widgets in Elementor if known, though this may break site functionality.

🧯 If You Can't Patch

  • Implement strict user role management: Only grant contributor access to trusted users and regularly audit user accounts.
  • Deploy a web application firewall (WAF) with XSS protection rules to block malicious script injection attempts.

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for 'Themesflat Addons For Elementor' version. If version is 2.1.1 or lower, the site is vulnerable.

Check Version:

wp plugin list --name='themesflat-addons-for-elementor' --field=version

Verify Fix Applied:

After updating, verify the plugin version shows 2.1.2 or higher in the WordPress plugins list.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to Elementor widget endpoints with script tags in URL parameters
  • Multiple failed login attempts followed by contributor-level access

Network Indicators:

  • Outbound connections to suspicious domains from your WordPress site following page visits

SIEM Query:

source="wordpress" AND (uri="*elementor*" AND (param="*<script>*" OR param="*javascript:*"))

🔗 References

📤 Share & Export