CVE-2025-1912
Executive Summary
CVE-2025-1912 is a Server-Side Request Forgery (SSRF) vulnerability discovered in the WordPress plugin Product Import Export for WooCommerce – Import Export Product CSV Suite by Webtoffee. The flaw resides in the validate_file() function, affecting all versions up to and including 2.5.0. An authenticated attacker with Administrator-level privileges can leverage this vulnerability to make arbitrary HTTP requests from the web server, potentially accessing or modifying internal services that are not exposed to the public internet.
This vulnerability is particularly dangerous in cloud or containerized environments where internal metadata services (e.g., AWS EC2, GCP, Azure) are accessible via HTTP. The CVSS score of 7.6 (High) reflects the potential for significant confidentiality impact, though exploitation requires high privileges.
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 is a WordPress plugin vulnerability. The plugin is distributed via the official WordPress plugin repository and can be installed directly from the WordPress admin dashboard. Users should monitor the plugin’s update channel for a patched version. No known supply chain compromise has been reported, but the lack of a patch increases the risk of zero-day exploitation.
CVSS Breakdown & Threat Level
- Attack Vector (AV): Network (N) – The attack is carried out over the network.
- Attack Complexity (AC): Low (L) – No special conditions are required.
- Privileges Required (PR): High (H) – Administrator-level access is needed.
- User Interaction (UI): None (N) – No user action is required.
- Scope (S): Changed (C) – The vulnerable component impacts resources beyond its original scope (internal services).
- Confidentiality (C): High (H) – Internal service data can be exfiltrated.
- Integrity (I): Low (L) – Limited modification of internal resources is possible.
- Availability (A): None (N) – No direct impact on availability.
Threat Level: High. While the privilege requirement reduces the attack surface, the potential to pivot into internal networks makes this a critical risk for enterprise environments.
Deep Dive & Mechanics
The vulnerability exists in the validate_file() function of the plugin. This function is intended to validate file paths or URLs provided by the user during product import/export operations. However, due to insufficient sanitization, an attacker can supply a URL pointing to an internal service (e.g., http://169.254.169.254/latest/meta-data/). The function will then make an HTTP request to that URL, and the response may be reflected back to the attacker or used in subsequent operations.
The core issue is that the plugin does not restrict the URL scheme or host to a whitelist of allowed domains. This allows SSRF attacks against internal services such as:
- Cloud metadata endpoints (AWS, GCP, Azure)
- Internal APIs and databases
- Localhost services (e.g., Redis, Memcached)
- Internal network scanners
Vulnerable vs. Patched Code
Since no official patch is available, the following is a hypothetical fix based on common SSRF mitigation patterns.
Vulnerable Code (simplified):
function validate_file($url) {
// No validation of URL host or scheme
$response = wp_remote_get($url);
return $response;
}
Patched Code (hypothetical):
function validate_file($url) {
$allowed_hosts = array('example.com', 'cdn.example.com');
$parsed_url = parse_url($url);
if (!in_array($parsed_url['host'], $allowed_hosts)) {
return new WP_Error('invalid_url', 'URL not allowed');
}
// Additional check to block private IPs
$ip = gethostbyname($parsed_url['host']);
if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)) {
$response = wp_remote_get($url);
return $response;
} else {
return new WP_Error('private_ip', 'Private IPs not allowed');
}
}
Exploitation & Lab Setup
Red Team
Prerequisites:
- WordPress admin credentials (Administrator role)
- Target WordPress site running the vulnerable plugin (<= 2.5.0)
Exploitation Steps:
- Log in to the WordPress admin panel.
- Navigate to the plugin’s import/export page (e.g.,
/wp-admin/admin.php?page=product-import-export-for-woocommerce). - In the file validation step, intercept the request using a proxy (e.g., Burp Suite).
- Modify the
file_urlparameter to point to an internal service, such as:http://169.254.169.254/latest/meta-data/ - Submit the request. The plugin will fetch the URL and potentially display the response or store it in a log.
Example Request:
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: target-site.com
Content-Type: application/x-www-form-urlencoded
action=validate_file&file_url=http://169.254.169.254/latest/meta-data/
Expected Outcome: The attacker receives the AWS metadata, including IAM credentials, instance ID, and region.
Blue Team
Detection:
- Monitor outbound HTTP requests from the web server to unusual IPs (especially private IP ranges like 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, and 169.254.169.254).
- Look for requests to cloud metadata endpoints (e.g.,
169.254.169.254,metadata.google.internal). - Audit admin-level user activity for suspicious file validation requests.
Mitigation:
- Restrict outbound traffic from the web server using a firewall or security group.
- Implement a Web Application Firewall (WAF) rule to block requests containing private IPs or cloud metadata endpoints.
- Monitor plugin updates and apply patches as soon as they are released.
Indicators of Compromise (IOCs)
Network IOCs:
- Outbound HTTP requests to
169.254.169.254ormetadata.google.internal - Requests to internal IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)
- Unusual User-Agent strings in outbound requests (e.g., WordPress/6.x)
- Outbound HTTP requests to
File IOCs:
- Log entries in
/var/log/apache2/access.logor/var/log/nginx/access.logcontainingvalidate_fileand internal IPs - Temporary files created by the plugin containing internal service responses
- Log entries in
Process IOCs:
wp_remote_get()calls to non-standard URLs in PHP error logs
Detection Engineering
YARA Rule
rule CVE_2025_1912_SSRF_WordPress {
meta:
description = "Detects SSRF attempts via validate_file() in Product Import Export for WooCommerce"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-1912"
strings:
$s1 = "validate_file" nocase
$s2 = "file_url" nocase
$s3 = "169.254.169.254" nocase
$s4 = "metadata" nocase
condition:
all of ($s1, $s2) and any of ($s3, $s4)
}
Sigma Rule
title: CVE-2025-1912 SSRF via Product Import Export for WooCommerce
id: 8a4b3c2d-1e5f-4a7b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects outbound HTTP requests to internal IPs from WordPress validate_file() function
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
service: access
detection:
selection:
cs-uri-query|contains: 'validate_file'
cs-uri-query|contains: 'file_url'
cs-uri-query|contains:
- '169.254.169.254'
- 'metadata.google.internal'
- '10.'
- '172.16.'
- '192.168.'
condition: selection
falsepositives:
- Legitimate use of internal services by administrators (rare)
level: high
Suricata Rule
alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-1912 SSRF Attempt - Product Import Export for WooCommerce"; flow:to_server; content:"validate_file"; http_uri; content:"file_url"; http_uri; content:"169.254.169.254"; http_uri; classtype:attempted-recon; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the plugin until a patch is available.
- Restrict outbound traffic from the web server using a firewall or security group to only allow necessary external connections.
- Monitor admin activity for any suspicious file validation requests.
Long-term Fix:
- Apply the official patch from Webtoffee as soon as it is released.
- Implement input validation and whitelisting for URLs in the plugin code.
- Use a WAF to block requests containing private IPs or cloud metadata endpoints.
Workaround:
- If the plugin is critical, consider using a reverse proxy that filters outbound requests to private IPs.
Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert
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.