WordPress Contact Form Entries Plugin Arbitrary File Upload (CVE-2026-115867)
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.
Vulnerability Intelligence
TheoreticalAffected Software
- Versions
- <= 1.5.5
Weakness (CWE)
Timeline
- Disclosed
- November 27, 2026
References & Proof of Concept
- 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#L1383
- https://plugins.trac.wordpress.org/browser/contact-form-entries/tags/1.5.5/contact-form-entries.php#L810
- 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
CVSS
- Attack Vector
- Network
- Attack Complexity
- Low
- Privileges Required
- None
- User Interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
What is CVE-2026-115867 WordPress Contact Form Entries Plugin Arbitrary File Upload (CVE-2026-115867)?
WordPress Contact Form Entries Plugin Arbitrary File Upload (CVE-2026-115867) (CVE-2026-115867) maps to the Initial Access and Execution tactics — the adversary is trying to get into your network in MITRE ATT&CK.
This page provides production-ready detection logic for WordPress Contact Form Entries Plugin Arbitrary File Upload (CVE-2026-115867), covering the data sources and telemetry it touches: IIS Web Server Logs, WordPress Access Logs. The queries below are rated critical severity at medium confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.
MITRE ATT&CK
- Tactic
- Initial Access Execution
// df00tech DF00-6594a48429 · https://df00tech.com/detections/CVE-2026-115867 · licence: https://df00tech.com/detections/licence
let uploadEndpoints = dynamic(["contact-form-entries", "admin-ajax.php", "vdcfe", "export_entries", "cfe_"]);
let scriptExt = dynamic([".php", ".phtml", ".php5", ".phar", ".pht"]);
W3CIISLog
| where csMethod == "POST"
| where csUriStem has_any (uploadEndpoints) or csUriQuery has_any (uploadEndpoints)
| where scStatus in (200, 302, 301)
| extend Suspicious = (csUriStem has "wp-content/uploads" and csUriStem has_any (scriptExt))
| join kind=leftouter (
W3CIISLog
| where csUriStem has "wp-content/uploads"
| where csUriStem has_any (scriptExt)
| project FollowOnUri = csUriStem, cIP, FollowTime = TimeGenerated
) on cIP
| where Suspicious or (FollowTime between (TimeGenerated .. (TimeGenerated + 1h)))
| project TimeGenerated, cIP, csMethod, csUriStem, csUriQuery, scStatus, csUserAgent, FollowOnUri
| sort by TimeGenerated desc Finds POST requests to the contact-form-entries plugin upload and export endpoints correlated with creation or subsequent access of PHP or other executable script files under wp-content/uploads in IIS-fronted WordPress deployments.
Data Sources
Required Tables
False Positives
- Legitimate administrators exporting contact form entries to permitted file formats (CSV/XLS) via the plugin UI.
- Security scanners or DAST tools probing the plugin endpoints during authorized testing.
- WordPress plugins that legitimately write PHP cache files into uploads subdirectories (e.g. some caching/optimization plugins).
Query fingerprint DF00-6594a48429 · licence
Sigma logsource & community rules
The detection logic for WordPress Contact Form Entries Plugin Arbitrary File Upload (CVE-2026-115867) (CVE-2026-115867) above is provided in a vendor-neutral
form so you can deploy it on any SIEM. The same logic is shipped here as native
KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the
following logsource:
logsource:
product: windows Browse the community-maintained Sigma rules for this technique:
Platform-specific guides for CVE-2026-115867
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
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.
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.
Related Detections
Tactic Hubs
Related Techniques
Same Tactic: Initial Access
Browse by tactic
- Reconnaissance TA0043
- Resource Development TA0042
- Initial Access TA0001
- Execution TA0002
- Persistence TA0003
- Privilege Escalation TA0004
- Stealth TA0005
- Defense Impairment TA0112
- Credential Access TA0006
- Discovery TA0007
- Lateral Movement TA0008
- Collection TA0009
- Command and Control TA0011
- Exfiltration TA0010
- Impact TA0040