☠️
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-2790

CVE-2024-2790 Cross-Site Scripting in Ht mega
📅 PUBLISHED: 2024-05-02 16:52 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.18%
👁️
0.18% probability
4.4× 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-2790 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.4.8. The flaw resides in the Accordion widget, where user-supplied attributes are not properly sanitized or escaped. An authenticated attacker with contributor-level access or higher can inject arbitrary web scripts that execute when any user visits the compromised page. This vulnerability is part of the WordPress ecosystem and does not involve Apache or Nginx directly.

⚡ 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 should verify the integrity of their plugin files and ensure they are sourced from trusted channels. No known supply chain compromise has been reported, but the lack of a patch increases risk for sites using this plugin.

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)
  • User Interaction: None
  • Scope: Changed (impact on other components)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

The threat level is medium due to the requirement for authenticated access, but the potential for widespread impact on site visitors and administrators makes it a significant concern.

Deep Dive & Mechanics

The vulnerability exists in the Accordion widget of the HT Mega plugin. When rendering the widget, user-supplied attributes (such as title, content, or custom data attributes) are not properly sanitized or escaped before being output in the HTML. This allows an attacker to inject malicious JavaScript code that is stored in the WordPress database and executed in the browser of any user viewing the page.

The attack flow:

  1. An attacker with contributor-level access creates or edits a page using the HT Mega Accordion widget.
  2. The attacker injects a malicious payload into one of the widget's attributes (e.g., title or content).
  3. The plugin stores the payload without proper sanitization.
  4. When a victim (including administrators) visits the page, the payload executes in their browser context.

Vulnerable vs. Patched Code

Vulnerable Code (version <= 2.4.8): The plugin directly outputs user-supplied attributes without escaping. For example, in the Accordion widget template:

echo '<div class="ht-mega-accordion-title" data-title="' . $title . '">';

Patched Code (hypothetical): The plugin should use WordPress's built-in escaping functions:

echo '<div class="ht-mega-accordion-title" data-title="' . esc_attr($title) . '">';

Since no official patch is available, users must apply manual mitigations.

Exploitation & Lab Setup

Red Team

To exploit this vulnerability in a lab environment:

  1. Set up a WordPress instance with the HT Mega plugin version 2.4.8.
  2. Log in as a contributor-level user.
  3. Create a new page and add the HT Mega Accordion widget.
  4. In the widget settings, inject a payload into the title field:
    <img src=x onerror=alert('XSS')>
    
  5. Save the page and visit it as an administrator to trigger the payload.

Blue Team

To detect exploitation attempts:

  • Monitor for unusual content in page/post revisions, especially in custom fields or widget settings.
  • Look for patterns like <script>, onerror, onload, or javascript: in the wp_postmeta table.
  • Use Web Application Firewall (WAF) rules to block common XSS payloads in POST requests to wp-admin/post.php.

Indicators of Compromise (IOCs)

  • File Hashes (SHA256):
    • ht-mega-for-elementor.zip (version 2.4.8): e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
  • Network Indicators:
    • Outbound connections to attacker-controlled domains from WordPress admin pages.
    • Unusual JavaScript files loaded from external sources.
  • Log Indicators:
    • WordPress audit logs showing creation or modification of pages/posts by contributor-level users with suspicious content.
    • PHP error logs containing XSS or script keywords.

Detection Engineering

YARA Rule

rule CVE_2024_2790_HT_Mega_XSS {
    meta:
        description = "Detects stored XSS payloads in HT Mega Accordion widget"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-2790"
    strings:
        $payload1 = /<script[^>]*>.*?<\/script>/is
        $payload2 = /onerror\s*=\s*["']?[^"'\s>]+/is
        $payload3 = /onload\s*=\s*["']?[^"'\s>]+/is
        $payload4 = /javascript\s*:\s*/is
    condition:
        any of them
}

Sigma Rule

title: CVE-2024-2790 HT Mega Stored XSS Detection
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects potential stored XSS payloads in WordPress HT Mega plugin
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: wordpress
detection:
    selection:
        http.method: 'POST'
        http.url: '/wp-admin/post.php'
        http.body|contains: 
            - '<script>'
            - 'onerror='
            - 'onload='
            - 'javascript:'
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in page content by administrators
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2024-2790 HT Mega Stored XSS Payload"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/post.php"; http_uri; content:"<script"; http_client_body; nocase; sid:1000001; rev:1;)

Remediation & Mitigation

Since no official patch is available, the following mitigations are recommended:

  1. Disable the HT Mega plugin until a patch is released.
  2. Restrict contributor-level access to trusted users only.
  3. Implement a Web Application Firewall (WAF) with rules to block XSS payloads.
  4. Use WordPress security plugins (e.g., Wordfence) to monitor and block malicious input.
  5. Regularly audit user roles and permissions to minimize the attack surface.
  6. Apply virtual patching via WAF or custom .htaccess rules to filter malicious input.

Valters IT signature: This report is generated for educational and defensive purposes. Always follow responsible disclosure practices.

👁️ 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.title:"HT Mega"
http.html:"ht-mega-accordion"

💣 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-2790/ · 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.