Skip to content
CVE-2026-115867 Microsoft Sentinel · KQL

Detect WordPress Contact Form Entries Plugin Arbitrary File Upload (CVE-2026-115867) in Microsoft Sentinel

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

KQL Detection Query

Microsoft Sentinel (KQL)
kusto
// 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
critical severity medium confidence

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

IIS Web Server LogsWordPress Access Logs

Required Tables

W3CIISLog

False Positives & Tuning

  • 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).

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.

  1. 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.

  2. 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.

  3. Test 3 Webshell spawns OS command (post-exploitation)

    Expected signal: EDR records a php process spawning a shell or child process executing 'id'.

  4. 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

  1. 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.
  2. 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.
  3. 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).
  4. Correlate upload timestamps with subsequent GET requests to those files to determine whether the uploaded script was executed.

Containment

  1. 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.
  2. Apply the contact-form-entries plugin fix from changeset 3795781, or deactivate and remove the plugin if a patch cannot be applied immediately.
  3. Add a WAF rule or .htaccess/nginx directive to deny direct execution of PHP within wp-content/uploads as a compensating control.

Evidence Collection

  1. Preserve the full web server access and error logs covering the suspected exploitation window and the attacker IP.
  2. Capture copies (with hashes) of any uploaded files and the wp-content/uploads directory listing with timestamps before remediation.
  3. 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.

Hunting — KQL
kql
// 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
Hunting — SPL
spl
``` 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

Test 1 Simulate arbitrary PHP upload via contact-form-entries endpoint
linux

Sends a crafted multipart POST emulating the vulnerable plugin upload handler with a PHP payload file to a lab WordPress instance.

Command

bash
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

bash
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.

Test 2 Place and request PHP webshell under uploads tree
linux

Drops a PHP file into the WordPress uploads directory and requests it to simulate successful web shell execution.

Command

bash
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

bash
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.

Test 3 Webshell spawns OS command (post-exploitation)
linux

Simulates a PHP web shell executing an OS command to validate endpoint process-lineage detection.

Command

bash
php -r 'system("id");' > /tmp/webshell_cmd.txt 2>&1

Cleanup

bash
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.

Test 4 Windows IIS double-extension upload probe
windows

Simulates an attacker uploading a PHP payload with a double extension to a Windows/IIS-hosted WordPress plugin endpoint.

Command

powershell
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
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