☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Themegoods 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-68510

CVE-2025-68510 Local File Inclusion in Themegoods
📅 PUBLISHED: 2026-01-22 16:52 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.22%
👁️
0.22% probability
5.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 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-68510 is a critical PHP Local File Inclusion (LFI) vulnerability affecting the Photography theme by ThemeGoods, a WordPress ecosystem component. The flaw resides in improper control of filenames used in PHP include/require statements, allowing an unauthenticated attacker to read arbitrary files from the server. With a CVSS score of 8.1, this vulnerability poses a high confidentiality risk, potentially exposing sensitive configuration files, database credentials, and source code. No public proof-of-concept or patch details are currently available, but the vendor has been notified.

⚡ 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 commercial WordPress theme distributed via ThemeGoods. Users must monitor the vendor’s update channel for a patched version (≥ 7.7.5). No open-source package registry (NPM, PyPI, etc.) is involved.

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) – impact confined to the vulnerable component.
  • Confidentiality (C): High (H) – full file read capability.
  • Integrity (I): None (N) – no file modification.
  • Availability (A): None (N) – no denial of service.

Threat Level: High – unauthenticated remote file disclosure with low complexity.

Deep Dive & Mechanics

The vulnerability exists in the Photography theme’s PHP code, where user-supplied input is passed directly to an include() or require() function without proper sanitization. By manipulating the filename parameter (e.g., via ?filename=../../../../etc/passwd), an attacker can traverse directories and include arbitrary local files. The theme likely uses this parameter to load template parts or language files, but fails to restrict the path to allowed directories.

Root Cause: Lack of input validation and path canonicalization in the include statement. The code does not check for directory traversal sequences (../) or enforce a whitelist of allowed files.

Attack Flow:

  1. Attacker sends a crafted HTTP request to the vulnerable endpoint.
  2. The server processes the filename parameter without sanitization.
  3. PHP’s include() function reads the specified file and outputs its contents.
  4. Sensitive data (e.g., wp-config.php) is disclosed.

Vulnerable vs. Patched Code

Vulnerable Code (pre-7.7.5):

<?php
$file = $_GET['filename'];
include($file);
?>

Patched Code (≥ 7.7.5):

<?php
$allowed_files = array('header', 'footer', 'sidebar');
$file = basename($_GET['filename']);
if (in_array($file, $allowed_files)) {
    include('templates/' . $file . '.php');
} else {
    // Handle error
}
?>

The patch uses basename() to strip directory traversal and validates against a whitelist.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • Target running WordPress with Photography theme < 7.7.5.
  • Network access to the web server.

Exploit Steps:

  1. Identify the vulnerable parameter (e.g., filename in a template loader).
  2. Craft a request to read /etc/passwd:
    GET /?filename=../../../../etc/passwd HTTP/1.1
    Host: target.com
    
  3. Observe the file contents in the response.

Example cURL Command:

curl -v "http://target.com/?filename=../../../../etc/passwd"

Advanced Payloads:

  • Read WordPress config: ?filename=../../../../wp-config.php
  • Read Apache logs: ?filename=../../../../var/log/apache2/access.log

Blue Team (Detection & Hardening)

Detection:

  • Monitor for directory traversal patterns in filename parameters.
  • Alert on requests containing ../ or ..\\ in query strings.
  • Use WAF rules to block path traversal attempts.

Hardening:

  • Apply vendor patch immediately.
  • Implement input validation: whitelist allowed files, use basename() and realpath().
  • Disable allow_url_include in php.ini to prevent RFI.
  • Restrict web server user permissions to read only necessary files.

Indicators of Compromise (IOCs)

  • Network:
    • HTTP requests with filename parameter containing ../ sequences.
    • Unusual file paths in GET/POST parameters (e.g., ../../../../etc/passwd).
  • File System:
    • Unexpected inclusion of sensitive files in web responses.
    • Log entries showing include() failures for non-existent paths.
  • Logs:
    • Web server access logs with filename=..%2f..%2f..%2f..%2fetc/passwd patterns.

Detection Engineering

YARA Rule

rule CVE_2025_68510_LFI_Photography {
    meta:
        description = "Detects PHP Local File Inclusion attempts in Photography theme"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-68510"
    strings:
        $traversal = /filename\s*=\s*.*\.\.\// nocase
        $include = /include\s*\(\s*\$_GET\s*\[\s*['"]filename['"]\s*\]\s*\)/ nocase
    condition:
        $traversal or $include
}

Sigma Rule

title: CVE-2025-68510 LFI Attempt via filename Parameter
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects directory traversal in filename parameter targeting Photography theme
author: Valters IT
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'GET'
        cs-uri-query|contains: 'filename='
        cs-uri-query|re: '\.\.\/'
    condition: selection
falsepositives:
    - Legitimate use of relative paths in custom code
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-68510 LFI Attempt - Photography Theme"; flow:to_server,established; content:"filename="; http_uri; pcre:"/filename\s*=\s*.*\.\.\//i"; classtype:attempted-recon; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate: Disable the vulnerable theme and switch to a default WordPress theme (e.g., Twenty Twenty-Four) until a patch is applied.
  2. Vendor Patch: Update to Photography theme version 7.7.5 or later from ThemeGoods.
  3. WAF Rules: Deploy virtual patching via Web Application Firewall to block filename parameters containing ../.
  4. Code Hardening: If custom development is involved, implement input validation using basename() and a whitelist.
  5. Monitoring: Enable logging and alerting for directory traversal patterns in web requests.

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.title:"Photography"
http.html:"wp-content/themes/photography"

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