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

CVE-2024-38706

CVE-2024-38706 Path Traversal in Hasthemes
📅 PUBLISHED: 2024-07-12 14:15 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: 1.23%
👁️
1.23% probability
30.9× above the median CVE
Tier: HIGH
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: Estonia License: Freemium
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.5
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: N User Interaction None
S: U Scope Unchanged
C: L Confidentiality Low
I: N Integrity None
A: N Availability None
6.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-38706 is a Path Traversal vulnerability found in the HT Mega WordPress plugin (slug: ht-mega-for-elementor) developed by DevItems. This plugin is a popular add-on for the Elementor page builder, providing a wide array of widgets and extensions. The vulnerability allows an unauthenticated attacker to traverse directories outside the intended web root, potentially reading sensitive files on the server. The CVSS score is 6.5 (Medium), but the impact is limited to confidentiality. No public proof-of-concept (PoC) or exploit code has been released at this time, and the patch status remains unknown.

⚡ 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 through the official WordPress plugin repository. The supply chain risk is elevated because:

  • Widespread Use: HT Mega is installed on hundreds of thousands of WordPress sites.
  • Delayed Patching: The vendor has not yet released a patch, leaving all sites running version 2.5.7 or earlier exposed.
  • No Workaround: Without a patch, the only mitigation is to disable or remove the plugin.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – The vulnerability can be exploited remotely.
  • Attack Complexity (AC): Low (L) – No special conditions are required.
  • Privileges Required (PR): None (N) – No authentication needed.
  • User Interaction (UI): None (N) – No user action required.
  • Scope (S): Unchanged (U) – The vulnerable component and the affected resource are the same.
  • Confidentiality (C): Low (L) – Limited file read capability.
  • Integrity (I): None (N) – No file modification possible.
  • Availability (A): None (N) – No denial of service.

Threat Level: Medium. The vulnerability is easy to exploit but only allows reading arbitrary files, not code execution or data modification.

Deep Dive & Mechanics

The vulnerability is a Path Traversal flaw, specifically using the .../...// pattern (CWE-35). This pattern bypasses simple sanitization that removes ../ sequences. The vulnerable endpoint likely processes a file path parameter without proper validation, allowing an attacker to read files outside the WordPress installation directory.

Example vulnerable parameter: ?file=.../...//wp-config.php

The .../...// sequence, when normalized by the operating system, becomes ../../ (since ... is a valid directory name on Unix-like systems, and .../...// resolves to ../../). This allows the attacker to traverse up two directories and then access wp-config.php, which contains database credentials.

Vulnerable vs. Patched Code

Since no patch is available, we can only analyze the vulnerable code pattern. The vulnerable function likely looks like this:

Vulnerable Code (PHP):

function read_file($file) {
    $file = str_replace('../', '', $file); // Insufficient sanitization
    $content = file_get_contents(ABSPATH . $file);
    return $content;
}

Patched Code (Expected):

function read_file($file) {
    $file = realpath(ABSPATH . $file);
    if (strpos($file, ABSPATH) !== 0) {
        die('Invalid path');
    }
    $content = file_get_contents($file);
    return $content;
}

The patched version uses realpath() to resolve the canonical path and then checks that it starts with the allowed base directory (ABSPATH).

Exploitation & Lab Setup

Red Team

Lab Setup:

  1. Install WordPress 6.x on a local server (e.g., XAMPP, Docker).
  2. Install HT Mega plugin version 2.5.7.
  3. Ensure the plugin is activated.

Exploitation Steps:

  1. Identify the vulnerable endpoint (likely an AJAX action or a shortcode handler).
  2. Craft a request with the path traversal payload:
    GET /wp-admin/admin-ajax.php?action=ht_mega_read_file&file=.../...//wp-config.php HTTP/1.1
    Host: target.com
    
  3. The server will return the contents of wp-config.php, revealing database credentials.

Note: No public exploit code is available; this is a theoretical exploitation based on the CVE description.

Blue Team

Detection:

  • Monitor web server logs for requests containing .../...// or similar path traversal patterns.
  • Look for requests to admin-ajax.php with suspicious file parameters.
  • Alert on any attempts to read wp-config.php, .env, or other sensitive files.

Hunting:

  • Search for HTTP requests with action=ht_mega_read_file (or similar) and a file parameter containing .. or ....
  • Use the YARA and Sigma rules below to scan logs and endpoints.

Indicators of Compromise (IOCs)

  • File Paths: /wp-config.php, /etc/passwd, /.env
  • URL Patterns: .../...// in the file parameter
  • HTTP Requests:
    GET /wp-admin/admin-ajax.php?action=ht_mega_read_file&file=.../...//wp-config.php
    
  • Log Entries: "action":"ht_mega_read_file" with "file":".../...//"

Detection Engineering

YARA Rule

rule CVE_2024_38706_Path_Traversal {
    meta:
        description = "Detects path traversal attempts targeting HT Mega plugin"
        author = "Valters IT"
        date = "2025-04-01"
        reference = "CVE-2024-38706"
    strings:
        $traversal1 = ".../...//"
        $traversal2 = "..\\..\\"
        $wp_config = "wp-config.php"
        $ht_mega_action = "ht_mega_read_file"
    condition:
        any of ($traversal*) and any of ($wp_config, $ht_mega_action)
}

Sigma Rule

title: CVE-2024-38706 HT Mega Path Traversal Attempt
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects HTTP requests with path traversal patterns targeting HT Mega plugin
author: Valters IT
date: 2025-04-01
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-uri-query|contains:
            - ".../...//"
            - "..\\..\\"
        cs-uri-query|contains: "ht_mega_read_file"
    condition: selection
falsepositives:
    - Legitimate use of triple dots in filenames (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-38706 HT Mega Path Traversal Attempt"; flow:to_server,established; content:".../...//"; http_uri; content:"ht_mega_read_file"; http_uri; classtype:attempted-recon; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patch is released.
  2. Implement a Web Application Firewall (WAF) rule to block requests containing .../...// in the query string.
  3. Restrict file permissions on sensitive files (e.g., wp-config.php should be readable only by the web server user).

Long-term Fix:

  • Monitor the vendor's repository for a patched version (>= 2.5.8).
  • Apply the patch as soon as it becomes available.
  • Consider replacing the plugin with a more secure alternative if the vendor does not respond.

Valters IT
Securing your digital frontier.

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

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