CVE-2024-4212

6.4 MEDIUM

📋 TL;DR

The Themesflat Addons For Elementor WordPress plugin has a stored cross-site scripting (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. This affects all WordPress sites using the plugin version 2.1.1 or earlier.

💻 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, take over the WordPress site, install backdoors, deface the website, or redirect visitors to malicious sites.

🟠

Likely Case

Attackers with contributor access inject malicious scripts to steal user session cookies, perform actions as other users, or display phishing content.

🟢

If Mitigated

With proper user role management and content security policies, impact is limited to data exposure from affected user sessions.

🌐 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. The vulnerability is in multiple widget components.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.1.2 or later

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

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Go 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 for untrusted users until patching is complete.

Disable Vulnerable Widgets

all

Disable the TF Group Image, TF Nav Menu, TF Posts, TF Woo Product Grid, TF Accordion, and TF Image Box widgets in Elementor settings.

🧯 If You Can't Patch

  • Implement Content Security Policy (CSP) headers to restrict script execution
  • Use web application firewall (WAF) rules to block XSS payloads in widget parameters

🔍 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, you are 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 parameters
  • Multiple failed login attempts followed by successful contributor-level login

Network Indicators:

  • Outbound connections to suspicious domains from your WordPress site
  • Unexpected JavaScript loading from your site's pages

SIEM Query:

source="wordpress" AND (uri_path="/wp-admin/admin-ajax.php" OR uri_path="/wp-json/") AND (param_name="widget" OR param_name="elementor") AND (param_value CONTAINS "<script>" OR param_value CONTAINS "javascript:")

🔗 References

📤 Share & Export