CVE-2025-47438
Executive Summary
CVE-2025-47438 is a critical PHP Local File Inclusion (LFI) vulnerability affecting the WP Job Portal WordPress plugin (versions up to and including 2.3.1). This 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. The CVSS score of 8.1 (High) reflects the ease of exploitation and the potential for complete confidentiality compromise. As this is a WordPress plugin vulnerability, the attack surface is limited to WordPress installations running the vulnerable plugin. No public proof-of-concept (PoC) or patch details are currently available, making this a high-priority zero-day for defenders.
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 through the official WordPress plugin repository. The supply chain risk is elevated because:
- No patch is available from the vendor (Wpjobportal).
- The plugin may be bundled in commercial themes or managed WordPress environments.
- Attackers could exploit this to gain a foothold in WordPress ecosystems, potentially leading to lateral movement or data exfiltration.
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) – The vulnerable component and the impacted component are the same.
- 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 combination of network exploitability, no authentication, and high confidentiality impact makes this a critical risk for any WordPress site using the WP Job Portal plugin.
Deep Dive & Mechanics
The vulnerability is a PHP Local File Inclusion (LFI) (CWE-98). The plugin likely uses a dynamic include() or require() statement where the filename is constructed from user-supplied input (e.g., via $_GET, $_POST, or $_REQUEST) without proper sanitization or validation. An attacker can manipulate this input to include arbitrary files from the server, such as /etc/passwd, configuration files, or log files.
Example vulnerable code pattern:
$file = $_GET['file'];
include($file . '.php');
An attacker could bypass the .php extension using path traversal and null byte injection (though null bytes are mitigated in PHP 5.3+), or by using PHP wrappers like php://filter to read source code.
Attack flow:
- Attacker identifies a parameter (e.g.,
page,template,file) in the plugin's URL. - Attacker sends a request like:
http://target.com/wp-content/plugins/wp-job-portal/vulnerable.php?file=../../../../etc/passwd%00 - The server includes the specified file, outputting its contents in the response.
Vulnerable vs. Patched Code
Since no patch is available, we can only hypothesize the vulnerable code and the required fix.
Vulnerable code (hypothetical):
$file = $_GET['file'];
include( WP_PLUGIN_DIR . '/wp-job-portal/templates/' . $file . '.php' );
Patched code (hypothetical):
$allowed_files = array('dashboard', 'jobs', 'applicants');
$file = $_GET['file'];
if (in_array($file, $allowed_files)) {
include( WP_PLUGIN_DIR . '/wp-job-portal/templates/' . $file . '.php' );
} else {
// Handle error
}
The fix must include:
- Whitelist validation of allowed filenames.
- Path traversal prevention (e.g.,
basename(),realpath()). - Disable inclusion of remote files (if RFI is also possible).
Exploitation & Lab Setup
Red Team (Exploitation)
Lab Setup:
- Install WordPress 6.x on a local server (e.g., XAMPP, Docker).
- Install WP Job Portal plugin version 2.3.1.
- Identify the vulnerable endpoint (e.g.,
wp-content/plugins/wp-job-portal/includes/class-job-portal.php).
Exploitation Steps:
- Reconnaissance: Use Shodan dorks to find vulnerable instances.
- Craft Payload: Use path traversal to read sensitive files.
curl "http://target.com/wp-content/plugins/wp-job-portal/vulnerable.php?file=../../../../etc/passwd" - Read Source Code: Use PHP wrappers to read plugin source.
curl "http://target.com/wp-content/plugins/wp-job-portal/vulnerable.php?file=php://filter/convert.base64-encode/resource=../wp-config.php" - Escalate: Use LFI to include log files (e.g.,
/var/log/apache2/access.log) and inject PHP code via User-Agent headers.
Blue Team (Detection & Defense)
Detection:
- Monitor for path traversal patterns in HTTP requests (e.g.,
../,..\\,%2e%2e%2f). - Alert on requests to plugin files with suspicious parameters.
- Use WAF rules to block LFI attempts.
Defense:
- Immediately disable or remove the WP Job Portal plugin if no patch is available.
- Implement a Web Application Firewall (WAF) with LFI rules.
- Restrict file permissions on the server (e.g.,
chmod 644for config files). - Enable PHP
open_basedirto limit file inclusion scope.
Indicators of Compromise (IOCs)
- Network IOCs:
- HTTP requests containing
../or..\\in parameters. - Requests to
wp-content/plugins/wp-job-portal/withfile=or similar parameters. - User-Agent strings containing PHP code (e.g.,
<?php system($_GET['cmd']); ?>).
- HTTP requests containing
- File System IOCs:
- Unexpected files in
/tmp/or web root. - Modified
.htaccessfiles.
- Unexpected files in
- Log IOCs:
- Apache/Nginx access logs showing path traversal attempts.
- PHP error logs with
include()failures.
Detection Engineering
YARA Rule
rule CVE_2025_47438_LFI_Detection {
meta:
description = "Detects LFI attempts targeting WP Job Portal plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-47438"
strings:
$path_traversal = /(\.\.\/|\.\.\\){2,}/
$plugin_path = /wp-job-portal/
$param_file = /[?&]file=/
condition:
$plugin_path and $param_file and $path_traversal
}
Sigma Rule
title: CVE-2025-47438 WP Job Portal LFI Attempt
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects path traversal attempts in WP Job Portal plugin
author: Valters IT
logsource:
category: webserver
product: apache
detection:
selection:
cs-uri-query|contains:
- 'wp-job-portal'
- 'file='
- '../'
- '..\\'
condition: selection
falsepositives:
- Legitimate use of file parameter (rare)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-47438 WP Job Portal LFI Attempt"; flow:to_server,established; content:"wp-job-portal"; http_uri; content:"file="; http_uri; pcre:"/(\.\.\/|\.\.\\){2,}/Ri"; classtype:attempted-recon; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the plugin until a patch is released.
- Implement a WAF rule to block LFI patterns.
- Review server logs for signs of exploitation.
Long-term Fix:
- Apply the vendor patch when available.
- Replace the plugin with an alternative if no patch is forthcoming.
- Conduct a security audit of all WordPress plugins.
Valters IT Signature: This report was generated by Valters IT Cyber Threat Intelligence. For questions, contact threatintel@valtersit.com.
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.