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

Detect WordPress File Upload Plugin Arbitrary File Deletion (CVE-2026-134173) in Microsoft Sentinel

Detects exploitation attempts against the WordPress File Upload plugin, versions up to and including 5.3.1, which is vulnerable to unauthenticated arbitrary file deletion (CVE-2026-134173, CWE-22). The plugin's wfu_ajax_action_handshake and wfu_ajax_action_send_email_notification AJAX actions accept a sid parameter that is only sanitized with sanitize_text_field(), which does not strip bracket characters. This lets an attacker craft a sid that plants forged records in the plugin's shared state store, including the per-session file path list and consent flag. Combined with a nonce that the same unauthenticated handshake can mint itself, this allows an unauthenticated attacker to delete arbitrary files on the server, which may make remote code execution possible. Detection focuses on admin-ajax.php POST requests invoking wfu_* AJAX actions with crafted sid parameters or path traversal content, and on unexpected deletion of sensitive WordPress files.

MITRE ATT&CK

Tactic
Impact Initial Access

KQL Detection Query

Microsoft Sentinel (KQL)
kusto
// df00tech DF00-e1cdb0e75c · https://df00tech.com/detections/CVE-2026-134173 · licence: https://df00tech.com/detections/licence
let traversal = dynamic(["../","..%2f","..%252f","%2e%2e%2f","....//"]);
W3CIISLog
| where csUriStem endswith "/admin-ajax.php"
| where csMethod == "POST"
| extend body = tolower(strcat(csUriQuery, " ", tostring(csReferer)))
| where body has "wfu_ajax_action_handshake" or body has "wfu_ajax" or body has "action=wfu"
| where body has_any (traversal) or body contains "wp-config"
| project TimeGenerated, cIP, csUriStem, csMethod, csUriQuery, scStatus, sSiteName
| sort by TimeGenerated desc
high severity medium confidence

Flags IIS-logged admin-ajax.php POST requests invoking wfu_* AJAX actions that carry path-traversal markers or reference wp-config, consistent with CVE-2026-134173 arbitrary file deletion.

Data Sources

IIS LogsWeb Server Logs

Required Tables

W3CIISLog

False Positives & Tuning

  • Legitimate File Upload plugin administrators deleting their own uploaded files via the plugin UI (should not contain traversal sequences).
  • Security scanners or authorized penetration tests probing admin-ajax.php.
  • WAF or reverse-proxy health checks that replay recorded request bodies containing encoded characters.

Other platforms for CVE-2026-134173


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.

  1. Test 1 Simulated wfu AJAX traversal file-deletion request

    Expected signal: Web server access log entry: POST /wp-admin/admin-ajax.php with body containing wfu_ajax_action_handshake and ../ traversal toward wp-config.php.

  2. Test 2 URL-encoded traversal variant

    Expected signal: Access log POST to admin-ajax.php with encoded %2e%2e%2f sequence and wfu_ajax action.

  3. Test 3 Benign plugin deletion control

    Expected signal: Access log POST to admin-ajax.php with wfu action and an in-bounds uploads path, no traversal sequence.


Response Playbook

Triage

  1. Confirm the targeted site runs WordPress File Upload plugin (wp-file-upload) version 5.3.1 or earlier by checking wp-content/plugins/wp-file-upload/wordpress_file_upload.php header or the readme.txt stable tag.
  2. Extract the source IP(s), timestamps and full request body from the flagged admin-ajax.php POST and decode any URL-encoded sid or path content to reconstruct the target file path.
  3. Check whether the request succeeded (HTTP 200 and a JSON success payload from the wfu AJAX action) versus being blocked (403/404).
  4. Correlate the source IP against authentication logs; the vulnerability does not require authentication, so lack of a session does not rule it out.

Containment

  1. Update the WordPress File Upload plugin to version 5.3.2 or later, or deactivate and remove the plugin if an immediate patch is not possible.
  2. Block the offending source IP(s) at the WAF/reverse proxy and add a WAF rule rejecting admin-ajax.php requests whose wfu_* parameters contain '../' or encoded traversal or bracket characters in the sid parameter.
  3. Restrict filesystem permissions so the web server user cannot delete wp-config.php and other core files outside the uploads directory.

Evidence Collection

  1. Preserve web server access logs, PHP error logs and WAF logs covering the request window, including full request bodies.
  2. Capture a filesystem integrity snapshot (file listing with mtimes/hashes) of WordPress core and plugin directories to identify deleted or missing files.

Escalation Criteria

  • !Escalate to incident response if wp-config.php, .htaccess, or other security-critical files are confirmed deleted or missing.
  • !Escalate if the deletion is followed by a WordPress setup/re-install flow (requests to wp-admin/setup-config.php or install.php) indicating attempted site takeover.

Investigation Guide

Forensic Artifacts

  • >Web server access logs showing admin-ajax.php POSTs with wfu_* actions and traversal or crafted sid parameters.
  • >Missing or recently-deleted core files (wp-config.php) and corresponding filesystem mtime gaps.
  • >PHP-FPM/error logs recording unlink() activity or warnings during the request window.

Tuning Guidance

Allowlist the known administrator IP ranges that legitimately manage uploads through the plugin UI, and focus alerting on requests where the decoded parameter path escapes the wp-content/uploads directory. If the environment does not log request bodies, enable WAF/reverse-proxy body logging for admin-ajax.php so traversal payloads are visible; otherwise detection degrades to referer/query-string indicators only.


Hunting Queries

Baselines the volume of wfu_* admin-ajax POSTs per source IP to surface anomalous bursts or new sources interacting with the plugin endpoint.

Hunting — KQL
kql
// df00tech DF00-e1cdb0e75c · https://df00tech.com/detections/CVE-2026-134173 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem endswith "/admin-ajax.php" and csMethod=="POST" | where tolower(csUriQuery) has "wfu" | summarize count() by cIP, bin(TimeGenerated, 1h)
Hunting — SPL
spl
``` df00tech DF00-e1cdb0e75c · https://df00tech.com/detections/CVE-2026-134173 · licence: https://df00tech.com/detections/licence ```
index=web sourcetype=access_combined uri_path="*/admin-ajax.php" method=POST form_data="*wfu*" | timechart span=1h count by clientip

Atomic Red Team Tests

Test 1 Simulated wfu AJAX traversal file-deletion request
linux

Sends an unauthenticated POST to admin-ajax.php invoking a wfu_* action with a path-traversal sequence targeting wp-config.php, reproducing the request shape of CVE-2026-134173 in a lab.

Command

bash
curl -s -o /dev/null -w '%{http_code}\n' -X POST 'http://wp-lab.local/wp-admin/admin-ajax.php' --data 'action=wfu_ajax_action_handshake&file=../../../../wp-config.php&op=delete'

Cleanup

bash
echo 'No cleanup required; request only. Restore wp-config.php from backup if the lab target is actually vulnerable.'

Expected Telemetry

Web server access log entry: POST /wp-admin/admin-ajax.php with body containing wfu_ajax_action_handshake and ../ traversal toward wp-config.php.

Expected Detection

KQL/SPL/EQL rules fire on the wfu_* action combined with traversal/wp-config markers.

Test 2 URL-encoded traversal variant
linux

Sends the same exploit shape using URL-encoded traversal (%2e%2e%2f) to validate detection of encoded path-traversal evasion.

Command

bash
curl -s -o /dev/null -X POST 'http://wp-lab.local/wp-admin/admin-ajax.php' --data 'action=wfu_ajax&session_token=test&file=%2e%2e%2f%2e%2e%2fwp-config.php'

Cleanup

bash
echo 'No cleanup required; restore target file from backup on a genuinely vulnerable lab host.'

Expected Telemetry

Access log POST to admin-ajax.php with encoded %2e%2e%2f sequence and wfu_ajax action.

Expected Detection

Rules match encoded traversal tokens (..%2f / %2e%2e%2f) against wfu_* actions.

Test 3 Benign plugin deletion control
linux

Issues a legitimate wfu_* AJAX deletion of a file inside the uploads directory with no traversal, to confirm the detection does not alert on normal plugin use.

Command

bash
curl -s -o /dev/null -X POST 'http://wp-lab.local/wp-admin/admin-ajax.php' --data 'action=wfu_ajax_action_handshake&file=2026/11/sample.txt&op=delete' -H 'Cookie: wordpress_logged_in_test=admin'

Cleanup

bash
echo 'No cleanup required.'

Expected Telemetry

Access log POST to admin-ajax.php with wfu action and an in-bounds uploads path, no traversal sequence.

Expected Detection

No alert expected, confirms traversal/wp-config condition suppresses legitimate deletions.

Related Detections