Back to Intelligence

CVE-2026-124251: WPIDE WordPress Plugin CSRF Nonce Bypass — Unauthenticated RCE Detection and Remediation Guide

SA
Security Arsenal Team
November 23, 2026
12 min read

The WPIDE plugin for WordPress — a file manager and code editor with tens of thousands of active installations — contains a critical vulnerability tracked as CVE-2026-124251 affecting all versions ≤ 3.6.4. The flaw allows unauthenticated attackers to bypass a CSRF nonce check and execute arbitrary code on the underlying web server. This is the second time this plugin's security model has failed in this release cycle: version 3.6.0 was supposed to fix CVE-2026-57766 (unauthenticated CSRF in versions ≤ 3.5.6) by adding a nonce check, but the developer scoped that check too narrowly. The result is a patch that looks good in a changelog and does almost nothing in practice.

If WPIDE is installed on any WordPress site you are responsible for, treat this as a patch-now event. The combination of "unauthenticated," "remote code execution," and "publicly documented bypass logic" is the exact profile of vulnerabilities that get mass-exploited within days of disclosure.

What Happened

WPIDE's 3.6.0 release attempted to remediate CVE-2026-57766, an unauthenticated CSRF vulnerability affecting versions ≤ 3.5.6, by introducing a nonce validation in the plugin's security layer (App/Services/Security/Security.php). The problem: the nonce is validated only when the page URL parameter equals exactly wpide.

The plugin registers seven admin pages/routes, not one. Any attacker — with no WordPress account, no credentials, no session — can invoke the same privileged file-management and code-execution functionality through one of the six other registered page handlers, completely sidestepping the nonce gate. The fix addressed the exact URL an auditor tested and ignored the rest of the attack surface.

This is a textbook incomplete-remediation pattern I see constantly in patch review work: developers fix the reported path instead of fixing the underlying authorization model. The security control was bolted onto one door while six identical doors were left unlocked.

Technical Analysis

Affected Products

  • Product: WPIDE (WordPress file manager and code editor plugin)
  • Affected versions: All versions ≤ 3.6.4
  • Platform: Any WordPress installation running the vulnerable plugin (PHP web stack — Apache, nginx, IIS)
  • Related CVEs: CVE-2026-57766 (the original unauthenticated CSRF, ≤ 3.5.6), CVE-2026-124251 (the nonce bypass, ≤ 3.6.4)

Vulnerability Mechanics (Defender's View)

The attack chain is straightforward:

  1. Entry point: The attacker sends an unauthenticated HTTP request to wp-admin/admin.php (or the equivalent admin-post/admin-ajax endpoint) targeting one of the six WPIDE page handlers that are not the literal page=wpide route.
  2. Control bypass: Security.php checks whether $_GET['page'] === 'wpide'. Since the attacker's request uses a different page value, the nonce validation branch is never entered. No check_admin_referer()-equivalent verification occurs.
  3. Privileged action execution: WPIDE's file manager exposes read, write, rename, delete, and execute-adjacent operations against the WordPress filesystem. The attacker writes arbitrary PHP — typically a webshell — into wp-content/uploads/, the plugin directory, or a theme file, or edits an existing PHP file (e.g., a theme's functions.php) to inject a payload.
  4. Code execution: The attacker requests the planted PHP file directly, achieving code execution as the web server user (www-data, apache, nginx, or the IIS application pool identity).
  5. Post-exploitation: Standard WordPress compromise tradecraft follows: administrator account creation via direct database writes, credential harvesting from wp-config.php (database creds, auth salts), reverse shells, and SEO spam or malware redirect injection.

Exploitation Requirements

  • Network reachability to the WordPress admin endpoints (often the entire internet, since wp-admin is frequently exposed)
  • No authentication, no user interaction, no valid session
  • Knowledge of one of the six unprotected page route values — trivially extracted from the public plugin source

Exploitation Status

At the time of writing, the bypass logic is publicly documented with the exact file path and validation condition identified (App/Services/Security/Security.php). Even without a weaponized PoC in circulation, the vulnerability class (unauthenticated arbitrary file write → RCE in WordPress) is one of the most reliably mass-exploited categories in the ecosystem. WordPress plugins in this class historically move from disclosure to automated scanning within 48–72 hours. Defenders should assume active scanning is underway and act accordingly. Monitor CISA KEV for addition, but do not wait for it — KEV listing lags exploitation.

Why This Matters Beyond One Plugin

Two lessons here generalize across your vulnerability management program:

  1. Changelog-driven patching is insufficient. Sites that "patched" CVE-2026-57766 by upgrading to 3.6.0–3.6.4 are still fully exploitable. Your patch verification process must account for incomplete fixes — when a vendor's fix is a narrow condition check rather than an architectural change, assume residual risk until proven otherwise.
  2. File manager plugins are standing RCE primitives. WPIDE, and plugins like it, exist to give the CMS the ability to modify its own code. When their access controls fail — and they fail regularly — the blast radius is total. The correct number of web-based code editors on a production WordPress site is zero.

Detection & Response

The most reliable detection surfaces for this attack are (1) web access logs showing requests to WPIDE admin routes, (2) file integrity events in the WordPress content tree, and (3) web server processes spawning unexpected child processes after webshell deployment. The rules below are written to minimize noise — WPIDE's legitimate admin usage requires an authenticated session, so unauthenticated requests to its routes are inherently suspicious.

Sigma Rules

YAML
---
title: WPIDE Plugin Admin Route Access Without Authentication
tid: 6f2a1b8c-3d4e-4f5a-9b7c-2e1d0c9a8b6f
status: experimental
description: Detects HTTP requests to WPIDE plugin admin page handlers from unauthenticated or external sources. CVE-2026-124251 bypasses the nonce check by invoking one of the seven registered WPIDE pages other than the literal 'wpide' route. Legitimate WPIDE usage requires an authenticated wp-admin session; requests without WordPress auth cookies are highly suspicious.
references:
  - https://cyberscoop.com/wpide-csrf-vulnerability-cve-2026-124251/
  - https://attack.mitre.org/techniques/T1190/
author: Security Arsenal
date: 2026/04/06
tags:
  - attack.initial_access
  - attack.t1190
logsource:
  category: webserver
detection:
  selection_uri:
    cs-uri|contains:
      - '/wp-admin/admin.php'
      - '/wp-admin/admin-post.php'
      - '/wp-admin/admin-ajax.php'
  selection_wpide:
    cs-uri-query|contains: 'wpide'
  selection_method:
    cs-method:
      - 'POST'
      - 'GET'
  filter_authenticated:
    cs-cookie|contains: 'wordpress_logged_in'
  condition: selection_uri and selection_wpide and selection_method and not filter_authenticated
falsepositives:
  - Rare; WPIDE admin routes accessed without a WordPress logged-in cookie have no legitimate use case
level: high
---
title: Web Server Process Spawning Shell or Command Interpreter
tid: 8c3d2e1f-4a5b-4c6d-8e9f-1a0b2c3d4e5f
status: experimental
description: Detects PHP-FPM, Apache, or nginx worker processes spawning command shells or common post-exploitation tools, consistent with webshell execution after a WordPress plugin compromise such as CVE-2026-124251.
references:
  - https://attack.mitre.org/techniques/T1505/003/
  - https://cyberscoop.com/wpide-csrf-vulnerability-cve-2026-124251/
author: Security Arsenal
date: 2026/04/06
tags:
  - attack.persistence
  - attack.t1505.003
  - attack.execution
  - attack.t1059
logsource:
  category: process_creation
  product: linux
detection:
  selection_parent:
    ParentImage|endswith:
      - '/php-fpm'
      - '/php-fpm8.1'
      - '/php-fpm8.2'
      - '/php-fpm8.3'
      - '/apache2'
      - '/httpd'
      - '/nginx'
  selection_child:
    Image|endswith:
      - '/sh'
      - '/bash'
      - '/dash'
      - '/zsh'
      - '/python'
      - '/python3'
      - '/perl'
      - '/nc'
      - '/ncat'
      - '/socat'
      - '/curl'
      - '/wget'
  condition: selection_parent and selection_child
falsepositives:
  - Legitimate WordPress cron or plugin update routines invoking curl/wget; baseline per host and tune by CommandLine
level: high
---
title: PHP File Written to WordPress Uploads or Theme Directory
tid: 2b4c6a8d-5e7f-4a1b-9c3d-7e5f2a4b6c8d
status: experimental
description: Detects creation of PHP files in WordPress uploads, cache, or theme directories — a common webshell staging location following exploitation of unauthenticated file-write flaws in plugins such as WPIDE (CVE-2026-124251).
references:
  - https://attack.mitre.org/techniques/T1505/003/
  - https://cyberscoop.com/wpide-csrf-vulnerability-cve-2026-124251/
author: Security Arsenal
date: 2026/04/06
tags:
  - attack.persistence
  - attack.t1505.003
logsource:
  category: file_event
  product: linux
detection:
  selection:
    TargetFilename|contains:
      - '/wp-content/uploads/'
      - '/wp-content/cache/'
      - '/wp-content/upgrade/'
    TargetFilename|endswith:
      - '.php'
      - '.phtml'
      - '.php7'
      - '.phar'
  condition: selection
falsepositives:
  - Legitimate plugin/theme installations write PHP under wp-content but rarely to uploads; alert volume should be low on well-managed sites
level: high

KQL — Microsoft Sentinel / Defender

WordPress typically runs on Linux, so hunt via Syslog and CommonSecurityLog (CEF from WAFs/reverse proxies) ingestion in Sentinel. The first query targets the WPIDE route pattern in web logs; the second correlates web server process behavior via Defender for Endpoint on servers that have it deployed.

KQL — Microsoft Sentinel / Defender
// Hunt 1: Unauthenticated requests to WPIDE plugin admin routes (via CEF/Syslog web logs)
CommonSecurityLog
| where TimeGenerated > ago(14d)
| where RequestURL has_any ("/wp-admin/admin.php", "/wp-admin/admin-post.php", "/wp-admin/admin-ajax.php")
| where RequestURL has "wpide"
| where isempty(AdditionalExtensions) or AdditionalExtensions !has "wordpress_logged_in"
| project TimeGenerated, SourceIP, RequestMethod, RequestURL, DeviceAction, DestinationHostName
| summarize RequestCount = count(), DistinctURLs = dcount(RequestURL) by SourceIP, DestinationHostName, bin(TimeGenerated, 1h)
| order by RequestCount desc
;
// Hunt 2: Web server processes spawning interpreters or download tools (Defender for Endpoint on servers)
DeviceProcessEvents
| where TimeGenerated > ago(14d)
| where InitiatingProcessFileName has_any ("php-fpm", "apache2", "httpd", "nginx", "php")
| where FileName has_any ("sh", "bash", "dash", "python", "python3", "perl", "nc", "ncat", "socat", "curl", "wget")
| project TimeGenerated, DeviceName, InitiatingProcessFileName, FileName, ProcessCommandLine, InitiatingProcessCommandLine, AccountName
| order by TimeGenerated desc
;
// Hunt 3: New PHP files in wp-content uploads via Syslog auditd ingestion
Syslog
| where TimeGenerated > ago(14d)
| where SyslogMessage has "wp-content/uploads" and SyslogMessage has ".php"
| where SyslogMessage has_any ("open", "creat", "write")
| project TimeGenerated, Computer, ProcessName, SyslogMessage
| order by TimeGenerated desc

Velociraptor VQL

Deploy this hunt across Linux web servers to identify webshells staged in the WordPress content tree — recently created PHP files in directories that should never contain executable code.

VQL — Velociraptor
-- Hunt for recently created PHP files in WordPress content directories (potential webshells)
-- Scope: wp-content/uploads, cache, and upgrade — directories with no legitimate PHP in normal operation
LET cutoff = now() - 14 * 24 * 3600

SELECT FullPath,
       Size,
       Mtime,
       Ctime,
       hash(path=FullPath).MD5 AS MD5
FROM glob(globs=[
    '/var/www/**/wp-content/uploads/**/*.php',
    '/var/www/**/wp-content/uploads/**/*.phtml',
    '/var/www/**/wp-content/cache/**/*.php',
    '/var/www/**/wp-content/upgrade/**/*.php',
    '/srv/www/**/wp-content/uploads/**/*.php',
    '/home/**/public_html/wp-content/uploads/**/*.php'
], accessor='file')
WHERE Mtime > cutoff
ORDER BY Mtime DESC

A companion hunt to enumerate WPIDE's presence and version across the fleet:

VQL — Velociraptor
-- Enumerate WPIDE plugin installations and versions across WordPress hosts
SELECT FullPath,
       read_file(filename=FullPath, length=4096) AS HeaderSnippet
FROM glob(globs=[
    '/var/www/**/wp-content/plugins/wpide/WPIDE.php',
    '/var/www/**/wp-content/plugins/wpide/readme.txt',
    '/srv/www/**/wp-content/plugins/wpide/readme.txt',
    '/home/**/public_html/wp-content/plugins/wpide/readme.txt'
], accessor='file')

Remediation / Verification Script (Bash)

Run this on each WordPress host to inventory WPIDE installations, check versions, and either update or quarantine the plugin. This script favors safe, auditable actions over blind automation — review before executing in production.

Bash / Shell
#!/bin/bash
# CVE-2026-124251 - WPIDE <= 3.6.4 verification and remediation helper
# Run as root or with sudo on the web server

set -u

DOCROOTS="/var/www /srv/www /home"
VULN_MAX="3.6.4"

echo "[*] Scanning for WPIDE plugin installations..."

find $DOCROOTS -type d -name "wpide" -path "*/wp-content/plugins/*" 2>/dev/null | while read -r plugdir; do
    echo ""
    echo "[+] Found WPIDE at: $plugdir"

    # Extract version from main plugin file
    version=$(grep -m1 -i "Version:" "$plugdir"/*.php 2>/dev/null | head -1 | sed 's/.*Version:\s*//i' | tr -d '[:space:]')
    echo "    Installed version: ${version:-UNKNOWN}"

    # Simple version comparison (assumes semver-like format)
    if [ -n "$version" ]; then
        if [ "$(printf '%s\n%s\n' "$VULN_MAX" "$version" | sort -V | head -1)" = "$VULN_MAX" ] && [ "$version" != "$VULN_MAX" ]; then
            echo "    STATUS: Version appears NEWER than $VULN_MAX - verify against vendor advisory"
        else
            echo "    STATUS: VULNERABLE (<= $VULN_MAX)"
            echo ""
            echo "    Recommended actions:"
            echo "      1) Update immediately via WP-CLI (preferred):"
            sitedir=$(dirname "$(dirname "$(dirname "$plugdir")")")
            echo "         sudo -u www-data wp --path=$sitedir plugin update wpide"
            echo "      2) If no patched release exists, DISABLE the plugin:"
            echo "         sudo -u www-data wp --path=$sitedir plugin deactivate wpide"
            echo "      3) Emergency quarantine (if WP-CLI unavailable):"
            echo "         mv '$plugdir' '${plugdir}.quarantined'"
        fi
    else
        echo "    STATUS: Could not determine version - treat as vulnerable"
    fi

done

echo ""
echo "[*] Checking for recently modified PHP files in uploads directories (last 14 days)..."
find $DOCROOTS -type f \( -name "*.php" -o -name "*.phtml" -o -name "*.phar" \) \
    -path "*/wp-content/uploads/*" -mtime -14 2>/dev/null | while read -r f; do
    echo "[!] Suspicious PHP in uploads: $f (modified: $(stat -c '%y' "$f" 2>/dev/null))"
done

echo ""
echo "[*] Done. Manually review any flagged files. Check web access logs for 'wpide' requests without wordpress_logged_in cookies."

Remediation

Primary action — in priority order:

  1. Update WPIDE to a version above 3.6.4 the moment the vendor ships a fix that applies nonce validation across all registered plugin routes, not just page=wpide. Verify the fix scope in the changelog or source diff — given this vendor's history of incomplete remediation on CVE-2026-57766, do not assume the next release is complete. Check the security check logic in App/Services/Security/Security.php yourself or have your team do it.
  2. If no patch is available, remove or deactivate WPIDE entirely. A web-based code editor on a production CMS is a standing liability. Unauthenticated RCE with no workaround justifies removal, not risk acceptance.
  3. Block at the edge as an interim control. Add WAF/reverse-proxy rules denying requests containing wpide in the query string to /wp-admin/admin.php, admin-post.php, and admin-ajax.php where the request lacks a valid WordPress session cookie. This is a compensating control, not a fix — attackers may find alternate invocation paths, so treat it as buying time for patching.
  4. Restrict wp-admin by source IP where operationally feasible. Allowlisting admin access to known corporate/VPN egress addresses eliminates this entire vulnerability class from unauthenticated internet attackers.
  5. Hunt retroactively. Before assuming you're clean, search web access logs for the past 30+ days for unauthenticated wpide requests, audit wp-content/uploads for PHP files, review WordPress user tables for unauthorized administrator accounts, and check wp-config.php and theme files for unexpected modifications. A site running WPIDE ≤ 3.5.6 has been exposed to the original CVE-2026-57766 as well — exposure windows may be long.
  6. Assume credential exposure on confirmed compromise. If you find evidence of exploitation, rotate database credentials, WordPress auth keys/salts in wp-config.php, and all administrator passwords. Treat the host as compromised until a clean rebuild or thorough forensic review says otherwise.

Vendor/advisory references:

Related Resources

Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.