CVE-2024-32782
Executive Summary
CVE-2024-32782 is a medium-severity information disclosure vulnerability affecting the HT Mega plugin for WordPress, developed by Hasthemes. This plugin, ht-mega-for-elementor, is a popular add-on for the Elementor page builder. The vulnerability allows an unauthenticated attacker to insert sensitive information into sent data, leading to the exposure of potentially confidential data from the WordPress installation. The flaw exists in all versions up to and including 2.4.7. As of this report, no official patch has been released, and no public proof-of-concept (PoC) or exploit code is available. The EPSS score is 0.0%, indicating a low probability of exploitation in the wild at this time, but the risk remains for unpatched sites.
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.
No signup required
Supply Chain & Package Security
This vulnerability is specific to the WordPress ecosystem. The HT Mega plugin is distributed via the official WordPress plugin repository and third-party marketplaces. Users who have installed the plugin from these sources are affected. There is no associated NPM, PyPI, Go, or Ruby package. The supply chain risk is limited to the plugin's update mechanism; if the vendor does not release a patch, users must manually remove or replace the plugin.
CVSS Breakdown & Threat Level
- CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Base Score: 4.3 (Medium)
- Attack Vector: Network (AV:N) – The vulnerability can be exploited remotely.
- Attack Complexity: Low (AC:L) – No special conditions are required.
- Privileges Required: None (PR:N) – No authentication is needed.
- User Interaction: None (UI:N) – No user action is required.
- Scope: Unchanged (S:U) – The vulnerable component and the impacted component are the same.
- Confidentiality Impact: Low (C:L) – Limited information disclosure.
- Integrity Impact: None (I:N) – No data modification.
- Availability Impact: None (A:N) – No denial of service.
Threat Level: Medium. While the CVSS score is moderate, the lack of a patch and the potential for sensitive data exposure (e.g., internal paths, database credentials, or user data) elevates the risk for affected WordPress sites.
Deep Dive & Mechanics
The vulnerability is classified as CWE-201: Insertion of Sensitive Information Into Sent Data. In the context of the HT Mega plugin, this likely occurs due to improper sanitization or validation of user-supplied input that is then reflected in HTTP responses or stored in a way that can be accessed by an attacker.
Mechanism:
- The plugin processes a request (e.g., via an AJAX endpoint or a shortcode) without proper access control or data filtering.
- An unauthenticated attacker sends a crafted request to the vulnerable endpoint.
- The plugin inadvertently includes sensitive information (such as database error messages, file paths, or configuration details) in the response.
- The attacker receives this data, which can be used to further compromise the site.
Potential Attack Vectors:
- AJAX Actions: The plugin may register AJAX actions that are accessible to unauthenticated users.
- Shortcodes: A shortcode that outputs data without proper capability checks.
- REST API Endpoints: Custom REST API routes that leak information.
Vulnerable vs. Patched Code
Since no patch is available, a direct code comparison cannot be made. However, based on the CWE, the vulnerable code likely resembles:
// Vulnerable code example (hypothetical)
add_action('wp_ajax_nopriv_ht_mega_get_data', 'ht_mega_get_data');
function ht_mega_get_data() {
$user_input = $_POST['some_param'];
// Directly outputting user input without sanitization
echo "You requested: " . $user_input;
// Or leaking internal data
global $wpdb;
echo "DB prefix: " . $wpdb->prefix;
wp_die();
}
A patched version would include:
- Capability checks (e.g.,
current_user_can('edit_posts')) - Input sanitization (e.g.,
sanitize_text_field()) - Output escaping (e.g.,
esc_html()) - Removal of sensitive data from responses.
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- A WordPress site with HT Mega plugin version <= 2.4.7.
- Network access to the site.
Steps:
- Identify the vulnerable endpoint. Common patterns include
/wp-admin/admin-ajax.phpwith actionht_mega_*. - Send a crafted request to trigger information disclosure.
# Example using curl to test for information disclosure
curl -X POST "http://target.com/wp-admin/admin-ajax.php" \
-d "action=ht_mega_get_data&some_param=test"
- Analyze the response for sensitive data (e.g., database errors, file paths, or configuration details).
Note: No public exploit code is available. The above is a generic example.
Blue Team (Defense)
Detection:
- Monitor for unusual AJAX requests to
admin-ajax.phpwith unknown or suspicious actions. - Look for responses containing error messages, stack traces, or internal paths.
Mitigation:
- Disable the HT Mega plugin until a patch is released.
- Implement a Web Application Firewall (WAF) rule to block requests to known vulnerable endpoints.
- Restrict access to
admin-ajax.phpfor unauthenticated users where possible.
Indicators of Compromise (IOCs)
- Network IOCs:
- HTTP POST requests to
/wp-admin/admin-ajax.phpwith action parameters starting withht_mega_. - Responses containing database error messages, file paths (e.g.,
/var/www/html/), or configuration data.
- HTTP POST requests to
- File IOCs:
- Presence of the plugin directory:
/wp-content/plugins/ht-mega-for-elementor/ - Version file:
/wp-content/plugins/ht-mega-for-elementor/readme.txt(check for version <= 2.4.7)
- Presence of the plugin directory:
- Log IOCs:
- Web server logs showing repeated requests to
admin-ajax.phpwith unknown actions. - PHP error logs containing warnings or errors from the HT Mega plugin.
- Web server logs showing repeated requests to
Detection Engineering
YARA Rule
rule CVE_2024_32782_HT_Mega_Info_Disclosure {
meta:
description = "Detects HT Mega plugin files vulnerable to CVE-2024-32782"
author = "Valters IT"
date = "2025-04-10"
reference = "https://nvd.nist.gov/vuln/detail/CVE-2024-32782"
strings:
$vuln_version = "Version: 2.4.7" nocase
$plugin_header = "Plugin Name: HT Mega" nocase
$ajax_action = "wp_ajax_nopriv_ht_mega" nocase
condition:
$plugin_header and ($vuln_version or $ajax_action)
}
Sigma Rule
title: CVE-2024-32782 HT Mega Information Disclosure Attempt
id: 8f3a2b1c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
status: experimental
description: Detects attempts to exploit CVE-2024-32782 in HT Mega plugin
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
service: access
detection:
selection:
cs-method: 'POST'
c-uri|contains: '/wp-admin/admin-ajax.php'
cs-uri-query|contains: 'action=ht_mega_'
condition: selection
falsepositives:
- Legitimate plugin functionality
level: medium
Suricata Rule
alert http any any -> any any (msg:"CVE-2024-32782 HT Mega Information Disclosure Attempt"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin-ajax.php"; http_uri; content:"action=ht_mega_"; http_client_body; classtype:attempted-recon; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the Plugin: Deactivate and delete the HT Mega plugin from all WordPress installations until a patch is released.
- Monitor Logs: Review web server and application logs for signs of exploitation.
- Update: If a patch becomes available, update to the latest version immediately.
Long-Term Measures:
- Implement a Web Application Firewall (WAF) with rules to block known attack patterns.
- Regularly audit WordPress plugins for vulnerabilities.
- Follow the principle of least privilege for AJAX actions and REST API endpoints.
- Subscribe to security advisories for WordPress plugins.
Workaround:
- If the plugin is critical, consider using a code snippet to add capability checks to the vulnerable AJAX actions. For example:
add_action('wp_ajax_nopriv_ht_mega_get_data', function() {
wp_die('Unauthorized.', 403);
}, 1);
Note: This workaround may break legitimate plugin functionality.
Valters IT
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.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.