CVE-2024-4634

6.4 MEDIUM

📋 TL;DR

This vulnerability allows authenticated WordPress users with contributor-level permissions or higher to inject malicious scripts into website pages using the Elementor Header & Footer Builder plugin. The scripts are stored and execute whenever users visit the compromised pages, enabling persistent cross-site scripting attacks. WordPress sites using vulnerable plugin versions are affected.

💻 Affected Systems

Products:
  • Elementor Header & Footer Builder for WordPress
Versions: Up to and including 1.6.28
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires authenticated user with at least contributor-level permissions. WordPress multisite installations are also affected.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could steal administrator credentials, redirect users to malicious sites, deface websites, or install backdoors for persistent access.

🟠

Likely Case

Malicious actors inject scripts to steal user session cookies, redirect visitors to phishing sites, or display unwanted advertisements.

🟢

If Mitigated

With proper user permission controls and content security policies, impact is limited to potential data leakage from users accessing compromised pages.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires contributor-level access. Public proof-of-concept details the vulnerable function and injection method.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.6.29 and later

Vendor Advisory: https://plugins.trac.wordpress.org/changeset/3086402/

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'Elementor Header & Footer Builder'. 4. Click 'Update Now' if available. 5. Alternatively, download version 1.6.29+ from WordPress repository and manually update.

🔧 Temporary Workarounds

Restrict User Permissions

all

Temporarily limit contributor-level users from editing posts/pages until patch is applied.

Implement Content Security Policy

linux

Add CSP headers to restrict script execution from unauthorized sources.

Add to .htaccess: Header set Content-Security-Policy "default-src 'self'; script-src 'self'"
Add to nginx config: add_header Content-Security-Policy "default-src 'self'; script-src 'self'";

🧯 If You Can't Patch

  • Disable the Elementor Header & Footer Builder plugin completely
  • Implement strict user access controls and audit all contributor-level accounts

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins → Elementor Header & Footer Builder version number

Check Version:

wp plugin list --name='Elementor Header & Footer Builder' --field=version

Verify Fix Applied:

Confirm plugin version is 1.6.29 or higher in WordPress admin panel

📡 Detection & Monitoring

Log Indicators:

  • Unusual post/page edits by contributor-level users
  • Multiple failed login attempts followed by successful contributor login
  • Administrator accounts accessing suspicious posts

Network Indicators:

  • External script loads from unexpected domains in page responses
  • Unusual outbound connections after page visits

SIEM Query:

source="wordpress.log" AND (event="post_updated" OR event="page_updated") AND user_role="contributor" AND plugin_version<"1.6.29"

🔗 References

📤 Share & Export