CVE-2024-39644

6.5 MEDIUM

📋 TL;DR

This stored XSS vulnerability in the Black Widgets For Elementor WordPress plugin allows attackers to inject malicious scripts into web pages. When users view pages containing the malicious content, the scripts execute in their browsers, potentially stealing session cookies or performing actions on their behalf. All WordPress sites using vulnerable versions of this plugin are affected.

💻 Affected Systems

Products:
  • Black Widgets For Elementor WordPress Plugin
Versions: All versions up to and including 1.3.5
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress with Elementor page builder installed. The vulnerability exists in the plugin's widget rendering functionality.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could steal administrator session cookies, take over WordPress sites, deface websites, or redirect visitors to malicious sites.

🟠

Likely Case

Attackers inject malicious scripts that steal user session data or credentials when users visit compromised pages.

🟢

If Mitigated

With proper input validation and output encoding, malicious scripts would be neutralized before reaching users' browsers.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Stored XSS vulnerabilities are commonly exploited. While no public PoC is confirmed, the vulnerability type is well-understood and easily weaponized.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.3.6 or later

Vendor Advisory: https://patchstack.com/database/vulnerability/black-widgets/wordpress-black-widgets-for-elementor-plugin-1-3-5-cross-site-scripting-xss-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'Black Widgets For Elementor'. 4. Click 'Update Now' if available. 5. Alternatively, download version 1.3.6+ from WordPress.org and manually update.

🔧 Temporary Workarounds

Disable vulnerable plugin

all

Temporarily disable the Black Widgets For Elementor plugin until patched

wp plugin deactivate black-widgets

Implement WAF rules

all

Add web application firewall rules to block XSS payloads targeting this plugin

🧯 If You Can't Patch

  • Remove the Black Widgets For Elementor plugin entirely and use alternative Elementor widgets
  • Implement strict Content Security Policy (CSP) headers to mitigate script execution

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for Black Widgets For Elementor version

Check Version:

wp plugin get black-widgets --field=version

Verify Fix Applied:

Verify plugin version is 1.3.6 or higher in WordPress admin panel

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to WordPress admin-ajax.php with script tags
  • Multiple failed attempts to access plugin files with XSS payloads

Network Indicators:

  • HTTP requests containing script tags or JavaScript payloads targeting plugin endpoints
  • Unexpected iframe or script tags in page responses

SIEM Query:

source="wordpress" AND (uri_path="*black-widgets*" OR uri_path="*admin-ajax*") AND (http_method="POST" AND (content="*<script>*" OR content="*javascript:*"))

🔗 References

📤 Share & Export