Detect WordPress Contact Form Entries Plugin Arbitrary File Upload (CVE-2026-115867) in Splunk
Detects exploitation of CVE-2026-115867, an unauthenticated arbitrary file upload vulnerability (CWE-434) in the 'Database for Contact Form 7, WPforms, Elementor forms' (contact-form-entries) WordPress plugin, affecting all versions up to and including 1.5.5. The copy_files function does not validate file extensions and accepts attacker-controlled stream wrapper URIs as the source, so an attacker can upload files that may be executable and achieve remote code execution. The plugin's .htaccess block on PHP execution is ineffective on Nginx, on LiteSpeed in certain configurations, and on Apache with AllowOverride None. Detection focuses on POST requests to the plugin's upload and export endpoints followed by the creation of or access to executable script files (.php/.phtml) under wp-content/uploads, and anomalous web-server process spawning.
MITRE ATT&CK
- Tactic
- Initial Access Execution
SPL Detection Query
``` df00tech DF00-6594a48429 · https://df00tech.com/detections/CVE-2026-115867 · licence: https://df00tech.com/detections/licence ```
index=web (sourcetype="ms:iis:auto" OR sourcetype="access_combined" OR sourcetype="apache:access" OR sourcetype="nginx:plus:kv")
| eval uri=coalesce(cs_uri_stem, uri_path, uri)
| eval method=coalesce(cs_method, method)
| search method=POST (uri="*contact-form-entries*" OR uri="*admin-ajax.php*" OR uri="*vdcfe*" OR uri="*export_entries*")
| transaction clientip maxspan=1h
| eval shell_hit=if(match(uri, "wp-content/uploads/.*\.(php|phtml|php5|phar|pht)(\?|$)"), 1, 0)
| where shell_hit=1 OR searchmatch("uri=*wp-content/uploads*.php*")
| table _time clientip method uri status useragent
| sort - _time Correlates POST requests to the contact-form-entries plugin with access to or creation of PHP script files under wp-content/uploads within a one-hour window, across IIS, Apache, and Nginx WordPress front ends.
Data Sources
Required Sourcetypes
False Positives & Tuning
- Authorized admins exporting entries to CSV/XLS via the plugin.
- Vulnerability scanners probing upload endpoints during sanctioned assessments.
- Caching/optimization plugins writing PHP files into uploads directories.
Other platforms for CVE-2026-115867
Testing Methodology
Validate this detection against 4 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 arbitrary PHP upload via contact-form-entries endpoint
Expected signal: Web server access log records a POST to admin-ajax.php (action vdcfe_export_entries) with a multipart body from the test client.
- Test 2 Place and request PHP webshell under uploads tree
Expected signal: Access log shows a GET to wp-content/uploads/2026/11/shell.php returning HTTP 200.
- Test 3 Webshell spawns OS command (post-exploitation)
Expected signal: EDR records a php process spawning a shell or child process executing 'id'.
- Test 4 Windows IIS double-extension upload probe
Expected signal: IIS W3CIISLog records a POST to admin-ajax.php with the vdcfe action from the test host.
References (5)
- https://plugins.trac.wordpress.org/browser/contact-form-entries/tags/1.5.5/contact-form-entries.php#L108
- https://plugins.trac.wordpress.org/browser/contact-form-entries/tags/1.5.5/contact-form-entries.php#L810
- https://plugins.trac.wordpress.org/browser/contact-form-entries/tags/1.5.5/contact-form-entries.php#L1383
- https://plugins.trac.wordpress.org/changeset/3795781/contact-form-entries
- https://www.wordfence.com/threat-intel/vulnerabilities/id/581b8b40-6333-4bb6-8584-de1dc3af2b45?source=cve
Response Playbook
Triage
- Identify the targeted site and confirm the installed version of the 'Database for Contact Form 7, WPforms, Elementor forms' (contact-form-entries) plugin. All versions up to and including 1.5.5 are vulnerable; apply the fix in changeset 3795781.
- Review the web server access logs for POST requests to contact-form-entries or admin-ajax.php (actions referencing vdcfe or export_entries) from the suspect source IP, and note the HTTP response codes.
- Enumerate files created or modified under wp-content/uploads (especially the plugin's entry-attachment subfolders) for any .php/.phtml/.phar files or files with double extensions (e.g. image.php.jpg).
- Correlate upload timestamps with subsequent GET requests to those files to determine whether the uploaded script was executed.
Containment
- Quarantine or delete any confirmed malicious script files found under wp-content/uploads and block the attacker source IP(s) at the WAF or edge.
- Apply the contact-form-entries plugin fix from changeset 3795781, or deactivate and remove the plugin if a patch cannot be applied immediately.
- Add a WAF rule or .htaccess/nginx directive to deny direct execution of PHP within wp-content/uploads as a compensating control.
Evidence Collection
- Preserve the full web server access and error logs covering the suspected exploitation window and the attacker IP.
- Capture copies (with hashes) of any uploaded files and the wp-content/uploads directory listing with timestamps before remediation.
- Export the WordPress database audit and activity-log entries and the PHP-FPM or web server process logs for the same window.
Escalation Criteria
- !Escalate to incident response if an uploaded script was executed (confirmed GET to the file returning 200 or evidence of spawned processes).
- !Escalate if evidence of post-exploitation is found, such as new admin users, modified core files, outbound C2, or lateral movement from the web host.
Investigation Guide
Forensic Artifacts
- >
New or modified .php/.phtml files under wp-content/uploads with recent mtime. - >
Web server access-log entries showing POST to plugin endpoints followed by GET to uploads-tree PHP. - >
Web server or PHP-FPM worker processes spawning shell interpreters (sh, bash, cmd.exe).
Tuning Guidance
Baseline legitimate export activity from the plugin (CSV/XLS downloads) and allowlist known admin source IPs to reduce noise. If specific caching or optimization plugins legitimately serve PHP from uploads subfolders, exclude those exact paths rather than the entire uploads tree. Tighten the correlation window if attacker-to-execution timing in your environment is consistently short.
Hunting Queries
Surfaces successful GET requests to PHP files inside the WordPress uploads tree, a strong indicator of web shell execution following the upload.
// df00tech DF00-6594a48429 · https://df00tech.com/detections/CVE-2026-115867 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has "wp-content/uploads" and csUriStem has_any (".php", ".phtml", ".phar") | where csMethod == "GET" and scStatus == 200 | project TimeGenerated, cIP, csUriStem, csUserAgent | sort by TimeGenerated desc ``` df00tech DF00-6594a48429 · https://df00tech.com/detections/CVE-2026-115867 · licence: https://df00tech.com/detections/licence ```
index=web (sourcetype=ms:iis:auto OR sourcetype=access_combined) uri="*wp-content/uploads*" (uri="*.php*" OR uri="*.phtml*") method=GET status=200 | stats count values(uri) by clientip | sort - count Atomic Red Team Tests
Sends a crafted multipart POST emulating the vulnerable plugin upload handler with a PHP payload file to a lab WordPress instance.
Command
printf '<?php echo "CVE-2026-115867-TEST"; ?>' > /tmp/shell.php && curl -s -X POST 'http://lab-wordpress.local/wp-admin/admin-ajax.php?action=vdcfe_export_entries' -F 'file=@/tmp/shell.php;type=application/x-php' -o /tmp/upload_resp.txt Cleanup
rm -f /tmp/shell.php /tmp/upload_resp.txt Expected Telemetry
Web server access log records a POST to admin-ajax.php (action vdcfe_export_entries) with a multipart body from the test client.
Expected Detection
The KQL/SPL correlation rule flags the POST to the plugin endpoint.
Drops a PHP file into the WordPress uploads directory and requests it to simulate successful web shell execution.
Command
cp /tmp/shell.php /var/www/html/wp-content/uploads/2026/11/shell.php 2>/dev/null; curl -s 'http://lab-wordpress.local/wp-content/uploads/2026/11/shell.php' -o /tmp/shell_resp.txt Cleanup
rm -f /var/www/html/wp-content/uploads/2026/11/shell.php /tmp/shell_resp.txt Expected Telemetry
Access log shows a GET to wp-content/uploads/2026/11/shell.php returning HTTP 200.
Expected Detection
The hunting query for GET requests to uploads-tree PHP files and the sequence/correlation rules fire.
Simulates a PHP web shell executing an OS command to validate endpoint process-lineage detection.
Command
php -r 'system("id");' > /tmp/webshell_cmd.txt 2>&1 Cleanup
rm -f /tmp/webshell_cmd.txt Expected Telemetry
EDR records a php process spawning a shell or child process executing 'id'.
Expected Detection
The CrowdStrike CQL process-lineage query flags web-server or PHP processes referencing uploads or spawning shells.
Simulates an attacker uploading a PHP payload with a double extension to a Windows/IIS-hosted WordPress plugin endpoint.
Command
powershell -Command "'<?php echo 1; ?>' | Out-File -Encoding ascii C:\temp\img.php.jpg; Invoke-WebRequest -Uri 'http://lab-wordpress.local/wp-admin/admin-ajax.php?action=vdcfe' -Method POST -InFile C:\temp\img.php.jpg -ContentType 'multipart/form-data'" Cleanup
powershell -Command "Remove-Item C:\temp\img.php.jpg -ErrorAction SilentlyContinue" Expected Telemetry
IIS W3CIISLog records a POST to admin-ajax.php with the vdcfe action from the test host.
Expected Detection
The KQL rule over W3CIISLog flags the POST to the plugin endpoint.