CVE-2025-60066
Executive Summary
CVE-2025-60066 is a critical PHP Local File Inclusion (LFI) vulnerability discovered in the Axiomthemes Katelyn WordPress theme, affecting all versions up to and including 1.0.10. The vulnerability stems 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, such as reading /etc/passwd, configuration files, or WordPress wp-config.php containing database credentials. The CVSS score of 8.1 (High) reflects the low attack complexity and network-based vector, with no privileges required. As of this report, no official patch has been released, and no public exploit code is available, but the vulnerability is trivially exploitable.
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 affects a WordPress theme distributed via the Axiomthemes marketplace and potentially bundled with other themes. Since it is a PHP application component, there is no NPM, PyPI, Go, or Ruby package involved. However, the risk extends to any WordPress site using the Katelyn theme, which may be installed via automatic updates or bundled with hosting packages. Organizations should audit their WordPress installations for this theme and treat it as a supply chain risk.
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 capability.
- Integrity (I): None (N) – No file modification.
- Availability (A): None (N) – No denial of service.
Threat Level: High. The vulnerability is easy to exploit and can lead to complete compromise of the WordPress instance if sensitive files (e.g., wp-config.php) are read.
Deep Dive & Mechanics
The vulnerability exists in the Katelyn theme's PHP code, likely in a function that dynamically includes template files or other resources based on user-supplied input. The include or require statement does not properly sanitize or validate the filename parameter, allowing path traversal sequences (e.g., ../../) to escape the intended directory.
Root Cause: The theme likely uses a parameter like ?template= or ?file= in a URL to load a specific PHP file. Without proper filtering, an attacker can supply a path like ../../../../etc/passwd to read arbitrary files.
Attack Flow:
- Attacker identifies a vulnerable endpoint (e.g.,
wp-content/themes/katelyn/some-page.php?file=). - Attacker sends a request with a path traversal payload:
?file=../../../../etc/passwd. - The PHP
includestatement processes the path, reading the target file. - The file content is displayed in the HTTP response (if the file is plain text) or executed as PHP (if the file contains PHP code).
Impact: Full read access to server files, including:
/etc/passwd(user enumeration)/etc/shadow(if permissions allow)wp-config.php(database credentials, salts, keys).htaccess(server configuration)- Log files (may contain session tokens)
Vulnerable vs. Patched Code
Since no patch is available, the vulnerable code pattern is hypothesized based on common LFI vulnerabilities in WordPress themes.
Vulnerable Code (hypothetical):
<?php
$file = $_GET['file'];
include("templates/" . $file . ".php");
?>
Patched Code (recommended):
<?php
$allowed_files = array('header', 'footer', 'sidebar');
$file = $_GET['file'];
if (in_array($file, $allowed_files)) {
include("templates/" . $file . ".php");
} else {
// Handle error
}
?>
Key Differences:
- Input Validation: Patched code uses a whitelist of allowed filenames.
- Path Traversal Prevention: Patched code does not allow directory traversal characters.
- Error Handling: Patched code gracefully handles invalid requests.
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- A WordPress instance with Katelyn theme version <= 1.0.10.
- Knowledge of the vulnerable parameter (e.g.,
file,template,page).
Exploit Steps:
- Identify the vulnerable endpoint. Common patterns include:
/?template=/?file=/wp-content/themes/katelyn/includes/load.php?file=
- Test for LFI with a simple payload:
GET /?file=../../../../etc/passwd HTTP/1.1 Host: target.com - If successful, the response will contain the contents of
/etc/passwd. - For more sensitive files, try:
(Note: PHP files will be executed, not displayed. UseGET /?file=../../../../wp-config.php HTTP/1.1php://filterto read source code.)
Advanced Payloads:
php://filter/convert.base64-encode/resource=../../../../wp-config.php(to read PHP files as text)../../../../proc/self/environ(to read environment variables)../../../../var/log/apache2/access.log(log poisoning)
No public exploit code is available, but the vulnerability is straightforward.
Blue Team (Detection & Hardening)
Detection:
- Monitor web server logs for path traversal patterns (e.g.,
../,..\\,%2e%2e%2f). - Look for requests to theme files with suspicious parameters.
- Use WAF rules to block directory traversal sequences.
Hardening:
- Disable the Katelyn theme until a patch is released.
- Implement a Web Application Firewall (WAF) with rules to block LFI attempts.
- Restrict file permissions on sensitive files (e.g.,
wp-config.phpshould be 600). - Use a security plugin like Wordfence to monitor file inclusion attempts.
Indicators of Compromise (IOCs)
Network IOCs:
- HTTP requests containing
../or..\\in query parameters. - Requests to
wp-content/themes/katelyn/with suspicious parameters. - Base64-encoded payloads in query strings (e.g.,
php://filter/convert.base64-encode/).
File System IOCs:
- Unexpected inclusion of files like
/etc/passwdin web server logs. - Presence of
wp-config.phpin temporary directories (if attacker copied it).
Log Examples:
192.168.1.100 - - [10/Oct/2025:12:00:00 +0000] "GET /?file=../../../../etc/passwd HTTP/1.1" 200 1234
Detection Engineering
YARA Rule
rule CVE_2025_60066_LFI_Detection {
meta:
description = "Detects path traversal attempts targeting Katelyn theme LFI"
author = "Valters IT"
date = "2025-10-10"
reference = "CVE-2025-60066"
strings:
$path_traversal = /(\.\.\/|\.\.\\){2,}/
$katelyn_param = /(\?|&)(file|template|page)=/
$php_filter = /php:\/\/filter/
condition:
any of ($path_traversal) and any of ($katelyn_param) or $php_filter
}
Sigma Rule
title: CVE-2025-60066 Katelyn LFI Attempt
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects HTTP requests with path traversal patterns targeting Katelyn theme
author: Valters IT
date: 2025/10/10
logsource:
category: webserver
product: apache
service: access
detection:
selection:
cs-uri-query|contains:
- '../'
- '..\\'
- '%2e%2e%2f'
- 'php://filter'
cs-uri-stem|contains: '/wp-content/themes/katelyn/'
condition: selection
falsepositives:
- Legitimate use of relative paths in some plugins
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-60066 Katelyn LFI Attempt"; flow:to_server,established; content:"/wp-content/themes/katelyn/"; http_uri; content:"../"; distance:0; http_uri; classtype:attempted-recon; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the Katelyn theme on all WordPress installations until a patch is available.
- Switch to a different theme that is actively maintained.
- Apply virtual patching via WAF rules to block path traversal patterns.
Long-term Fix:
- The vendor (Axiomthemes) must release a patched version that implements proper input validation and whitelisting.
- Until then, manually patch the vulnerable code by adding a whitelist of allowed files.
Workaround:
- Add the following to
.htaccessto block common LFI patterns:RewriteEngine On RewriteCond %{QUERY_STRING} (\.\./|\.\.\\) [NC] RewriteRule .* - [F,L]
Monitoring:
- Continuously monitor for exploitation attempts using the provided detection rules.
- Review server logs for any successful LFI attempts.
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.