Detect CVE-2026-104998: Arbitrary File Upload in Product Input Fields for WooCommerce (PIF Cart) in Splunk
Detects exploitation of CVE-2026-104998, an unauthenticated arbitrary file upload vulnerability (CWE-434) in the Product Input Fields for WooCommerce WordPress plugin in all versions up to and including 2.1.0. The process_file_input_field function in the PIF cart handler (includes/class-pif-cart.php) relies on the client-supplied multipart Content-Type header as the only file type check and writes the upload to the pif_temp directory using the client-supplied filename. The pif_temp directory is created without .htaccess or index.php restrictions, so written files are directly web-accessible and executable on default Apache/mod_php setups, allowing an attacker to upload executable PHP and achieve remote code execution. Exploitation requires a product configured with a File-type Product Input Field with the Show thumbnail option enabled. Detection focuses on suspicious multipart POST requests to WooCommerce cart or product endpoints followed by requests to newly created PHP files, and on web server processes spawning shells. Exploit status is theoretical at time of writing.
MITRE ATT&CK
- Tactic
- Initial Access Execution Persistence
SPL Detection Query
``` df00tech DF00-e4d5104a36 · https://df00tech.com/detections/CVE-2026-104998 · licence: https://df00tech.com/detections/licence ```
index=web (sourcetype="access_combined" OR sourcetype="nginx:plus:access" OR sourcetype="iis")
| eval is_upload=if(method="POST" AND (like(uri,"%wc-ajax%") OR like(uri,"%admin-ajax.php%") OR like(uri,"%pif%") OR like(uri,"%add-to-cart%")),1,0)
| eval is_shell=if((like(uri,"%wp-content/uploads%") AND (like(uri,"%.php%") OR like(uri,"%.phtml%") OR like(uri,"%.phar%"))),1,0)
| where is_upload=1 OR is_shell=1
| transaction clientip maxspan=2h
| where is_upload>0 AND is_shell>0
| table _time clientip method uri status useragent bytes Correlates per-client POST requests to PIF/WooCommerce cart endpoints with later requests to PHP files under wp-content/uploads within a 2-hour window, flagging probable arbitrary file upload exploitation.
Data Sources
Required Sourcetypes
False Positives & Tuning
- Legitimate admin or developer uploading plugin assets
- Automated vulnerability scanners generating both request types
- Benign PHP files created by other WordPress plugins under uploads
Other platforms for CVE-2026-104998
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.
- Test 1 Simulate PIF arbitrary file upload via multipart POST
Expected signal: Web access log entry: POST to admin-ajax.php with wc-ajax/pif parameters, multipart content-type, non-trivial request body size.
- Test 2 Request uploaded web shell from uploads directory
Expected signal: Web access log entry: GET to wp-content/uploads/*.php returning HTTP 200 (if file present) or 404.
- Test 3 Web server spawns shell (post-exploitation RCE)
Expected signal: Endpoint process telemetry: php-fpm/apache2/nginx parent spawning /bin/sh with command line 'id; uname -a'.
References (5)
- https://plugins.trac.wordpress.org/browser/product-input-fields-for-woocommerce/tags/2.1.0/includes/class-pif-cart.php#L205
- https://plugins.trac.wordpress.org/browser/product-input-fields-for-woocommerce/tags/2.1.0/includes/class-pif-cart.php#L295
- https://plugins.trac.wordpress.org/browser/product-input-fields-for-woocommerce/tags/2.1.0/includes/class-pif-cart.php#L342
- https://plugins.trac.wordpress.org/changeset?reponame=&old=3819954%40product-input-fields-for-woocommerce&new=3819954%40product-input-fields-for-woocommerce
- https://www.wordfence.com/threat-intel/vulnerabilities/id/2b729c88-9a7e-4729-bec1-6e5f9bef4f2d?source=cve
Response Playbook
Triage
- Identify the affected host and confirm the Product Input Fields for WooCommerce plugin is installed at version <= 2.1.0 via wp-content/plugins/product-input-fields-for-woocommerce/ or the WordPress admin plugins page.
- Review web access logs for the flagged client IP: confirm a multipart/form-data POST to a WooCommerce/PIF cart endpoint (wc-ajax, admin-ajax.php, add-to-cart) immediately preceding a request to a PHP file under the plugin upload directory.
- Inspect the plugin upload directory (pif_temp) and the wp-content/uploads tree for recently created or modified files with PHP-executable extensions (.php, .phtml, .phar, .pht) and review their contents for web shell signatures (eval, base64_decode, system, assert).
- Correlate the source IP with threat intel and check whether the same IP accessed any uploaded file returning HTTP 200, indicating successful execution.
Containment
- Deactivate the Product Input Fields for WooCommerce plugin or update it to a fixed version beyond 2.1.0, and block the plugin's upload endpoint at the WAF.
- Quarantine or delete any confirmed web shell files and block the attacker source IP at the perimeter firewall/WAF.
- Isolate the web server host from the network if active command execution via a shell is confirmed.
Evidence Collection
- Preserve full web server access and error logs covering the window around the upload, plus the raw uploaded file(s) with hashes (SHA-256) for forensic analysis.
- Capture a timeline of file creation/modification under the plugin upload directory and wp-content/uploads (filesystem mtime/ctime) and the WordPress database audit of recent option/user changes.
- Collect endpoint process telemetry showing any web server process spawning shells or interpreters, including command lines and network connections.
Escalation Criteria
- !Escalate to incident response if an uploaded PHP file returned HTTP 200 to the attacker or if endpoint telemetry shows the web server spawning a shell (confirmed RCE).
- !Escalate if evidence of lateral movement, new administrative WordPress users, outbound C2 connections, or data exfiltration is found.
Investigation Guide
Forensic Artifacts
- >
Newly created PHP files under the plugin upload directory or wp-content/uploads with recent mtime/ctime. - >
Web server access log entries showing the multipart POST and subsequent GET/POST to the uploaded file. - >
Web server process tree showing php-fpm/apache/nginx/w3wp spawning sh, bash, cmd.exe, or powershell.
Tuning Guidance
Baseline legitimate PHP files that other installed plugins may serve from wp-content/uploads and exclude those known paths. Narrow the cart-endpoint list to the specific PIF/WooCommerce routes used by your site, and restrict the correlation window (maxspan) if the environment is high-traffic to reduce transaction noise. Allowlist known administrator and scanner source IPs where appropriate.
Hunting Queries
Hunts for successful (HTTP 200) requests to PHP files located under the WordPress uploads directory, which should normally never serve executable PHP.
// df00tech DF00-e4d5104a36 · https://df00tech.com/detections/CVE-2026-104998 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has "wp-content/uploads" and csUriStem has_any (".php", ".phtml", ".phar") | where scStatus == 200 | summarize count() by cIP, csUriStem, bin(TimeGenerated, 1h) ``` df00tech DF00-e4d5104a36 · https://df00tech.com/detections/CVE-2026-104998 · licence: https://df00tech.com/detections/licence ```
index=web (sourcetype=access_combined OR sourcetype=iis) uri="*wp-content/uploads*" (uri="*.php*" OR uri="*.phtml*" OR uri="*.phar*") status=200 | stats count by clientip, uri Atomic Red Team Tests
Uploads a benign PHP test file to the simulated PIF cart endpoint to validate detection of the upload request pattern.
Command
echo '<?php echo "pif-test-marker"; ?>' > /tmp/pif_test.php && curl -s -X POST 'http://localhost/wp-admin/admin-ajax.php?action=wc-ajax&pif_upload=1' -F 'pif_file=@/tmp/pif_test.php;type=application/x-php' -A 'pif-atomic-test' Cleanup
rm -f /tmp/pif_test.php Expected Telemetry
Web access log entry: POST to admin-ajax.php with wc-ajax/pif parameters, multipart content-type, non-trivial request body size.
Expected Detection
KQL/SPL correlation rule flags the POST to the PIF/WooCommerce cart endpoint as the first stage of the upload sequence.
Simulates the attacker accessing a PHP file placed under wp-content/uploads to trigger execution.
Command
curl -s 'http://localhost/wp-content/uploads/2026/11/pif_test.php?cmd=id' -A 'pif-atomic-test' Cleanup
echo 'No local cleanup required; remove staged file from uploads directory on the test web server.' Expected Telemetry
Web access log entry: GET to wp-content/uploads/*.php returning HTTP 200 (if file present) or 404.
Expected Detection
Correlation rule / hunting query flags a request to a PHP file under wp-content/uploads from the same source IP as the upload POST.
Simulates a web shell executing an OS command by spawning a shell from the web server process context.
Command
sudo -u www-data /bin/sh -c 'id; uname -a' 2>/dev/null || /bin/sh -c 'id; uname -a' Cleanup
echo 'No persistent artifacts created.' Expected Telemetry
Endpoint process telemetry: php-fpm/apache2/nginx parent spawning /bin/sh with command line 'id; uname -a'.
Expected Detection
CrowdStrike CQL rule flags the web server process spawning a shell child process.