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

CVE-2025-54015

CVE-2025-54015 Local File Inclusion in Ht plugins
📅 PUBLISHED: 2025-07-16 11: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: 0.50%
👁️
0.50% probability
12.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.
Country: Estonia License: Freemium
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.6
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: H Confidentiality High
I: N Integrity None
A: N Availability None
6.6
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-54015 is a PHP Local File Inclusion (LFI) vulnerability discovered in the HT Contact Form 7 WordPress plugin, developed by HT Plugins. The flaw resides in the improper control of a filename used in a PHP include or require statement, allowing an unauthenticated attacker to include arbitrary local files from the server. This can lead to sensitive information disclosure, such as reading the wp-config.php file containing database credentials, or potentially enabling further server-side attacks if combined with file upload capabilities.

The vulnerability affects all versions of the plugin from n/a through 2.0.0. As of this report, no official patch has been released, and no public proof-of-concept (PoC) code is available. The EPSS score is 0.0%, indicating low exploitation activity in the wild, but the risk remains significant for unpatched WordPress installations.

⚡ 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 is specific to the WordPress plugin ecosystem. The plugin is distributed via the official WordPress Plugin Directory and can be installed directly from the WordPress admin dashboard. Users are advised to check for updates or remove the plugin if no patch is available.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Base Score: 6.6 (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 needed.
  • User Interaction: None (UI:N) – No user action required.
  • Scope: Unchanged (S:U) – The vulnerable component and the impacted component are the same.
  • Confidentiality Impact: High (C:H) – Sensitive files can be read.
  • Integrity Impact: None (I:N) – No file modification is possible.
  • Availability Impact: None (A:N) – No denial of service.

Threat Level: Medium. While the CVSS score is 6.6, the lack of a patch and the potential for information disclosure elevate the risk for unpatched sites.

Deep Dive & Mechanics

The vulnerability is a classic PHP Local File Inclusion (LFI) caused by insufficient sanitization of a filename parameter used in a PHP include or require statement. In the HT Contact Form 7 plugin, a parameter (likely template or similar) is passed to a PHP function that constructs a file path without proper validation. An attacker can manipulate this parameter to include arbitrary files from the server, such as /etc/passwd or wp-config.php.

The attack typically works by sending a crafted HTTP request to a vulnerable endpoint, e.g.:

GET /wp-content/plugins/ht-contactform/includes/class-ht-contactform.php?template=../../../../wp-config.php

The plugin then includes the specified file, outputting its contents to the attacker.

Vulnerable vs. Patched Code

Since no patch is available, the vulnerable code is presumed to be similar to:

// Vulnerable code (hypothetical)
$template = $_GET['template'];
include( plugin_dir_path( __FILE__ ) . 'templates/' . $template . '.php' );

A patched version would implement strict validation:

// Patched code (hypothetical)
$allowed_templates = array('form', 'confirmation', 'error');
$template = $_GET['template'];
if (in_array($template, $allowed_templates)) {
    include( plugin_dir_path( __FILE__ ) . 'templates/' . $template . '.php' );
} else {
    // Handle error
}

Exploitation & Lab Setup

Red Team (Offensive)

Lab Setup:

  1. Install a local WordPress instance (e.g., using Docker or XAMPP).
  2. Install HT Contact Form 7 plugin version 2.0.0.
  3. Identify the vulnerable parameter (e.g., template).

Exploitation Steps:

  1. Send a crafted HTTP request to include a sensitive file:
    curl "http://target/wp-content/plugins/ht-contactform/includes/class-ht-contactform.php?template=../../../../wp-config"
    
  2. The response will contain the contents of wp-config.php, revealing database credentials.

Note: No public exploit code is available; the above is a hypothetical example based on common LFI patterns.

Blue Team (Defensive)

Detection:

  • Monitor web server logs for suspicious ../ sequences in GET parameters.
  • Look for requests to plugin files with unexpected parameters.

Mitigation:

  • Disable or remove the plugin until a patch is released.
  • Implement a Web Application Firewall (WAF) rule to block path traversal patterns.
  • Restrict file inclusion via PHP configuration (e.g., open_basedir).

Indicators of Compromise (IOCs)

  • File Paths: /wp-content/plugins/ht-contactform/includes/class-ht-contactform.php
  • URL Patterns: ?template=../../../../etc/passwd or similar path traversal sequences.
  • Log Entries: HTTP 200 responses to requests containing ../ in the template parameter.
  • Network Traffic: Outbound connections from the server to attacker-controlled IPs (if combined with RFI).

Detection Engineering

YARA Rule

rule CVE_2025_54015_LFI_HT_ContactForm {
    meta:
        description = "Detects attempts to exploit LFI in HT Contact Form 7 plugin"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-54015"
    strings:
        $s1 = "ht-contactform" nocase
        $s2 = "template=" nocase
        $s3 = "../" nocase
    condition:
        all of ($s1, $s2, $s3)
}

Sigma Rule

title: CVE-2025-54015 - HT Contact Form 7 LFI Attempt
id: 12345678-1234-1234-1234-123456789abc
status: experimental
description: Detects path traversal attempts in HT Contact Form 7 plugin
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-uri-query|contains: 
            - "template=../../"
            - "template=..\\..\\"
    condition: selection
falsepositives:
    - Legitimate use of template parameter with valid paths
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-54015 - HT Contact Form 7 LFI Attempt"; flow:to_server,established; content:"/wp-content/plugins/ht-contactform/"; http_uri; content:"template="; http_uri; content:"../"; http_uri; classtype:attempted-recon; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate Action: Disable or remove the HT Contact Form 7 plugin until a patch is released.
  2. WAF Rules: Deploy a Web Application Firewall rule to block requests containing ../ in the template parameter.
  3. PHP Configuration: Set open_basedir to restrict file access to the WordPress directory.
  4. Monitoring: Enable detailed logging for web server and monitor for suspicious requests.
  5. Update: Regularly check the WordPress Plugin Directory for updates to the plugin.

Valters IT
Securing Digital Frontiers

👁️ 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-contactform"
http.html:"HT Contact Form 7"

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