← Hard News ▣ Distilled locally

WPIDE ≤ 3.6.4 — CSRF Nonce Bypass Leading to Unauthenticated RCE (CVE-2026-124251)

By Greg Otto
November 23, 2026  ·  CyberScoop ↗

Summary

This technical report has been generated with the help of GLM-5.3-Flash.

WPIDE’s 3.6.0 release attempted to remediate CVE-2026-57766 (unauthenticated CSRF, ≤ 3.5.6) by introducing a nonce check, but the check is scoped too narrowly: a security service validates the nonce only when the page URL parameter equals wpide exactly (App/Services/Security/Security.php). The plugin registers seven submenu pages whose slugs contain a #/ fragment — wpide#/file-manager, wpide#/file-editor, wpide#/image-editor, wpide#/db-manager, wpide#/config-manager, wpide#/snippets, wpide#/settings — so none match, and requests naming any submenu slug reach the plugin’s internal router with no CSRF validation. 

WordPress core accepts the URL-encoded #/ (%23%2F) in the page parameter, and core’s capability gate passes because the CSRF victim is by definition a logged-in administrator. The 3.6.2 release rebuilt the mechanism as an X-CSRF-Token header scheme but kept the same slug-scoped gate, so the bypass persisted.

An unauthenticated attacker can therefore CSRF a logged-in administrator into any plugin action. The code-execution path is the Snippets feature introduced in 3.6.0: via req=/snippets/save, saving a PHP snippet with status: "active" executes attacker-controlled PHP server-side during the save request itself — the activation probe writes the snippet to uploads/wpide-snippets/php/0-<hash>.php and executes it via include (falling back to eval() when the directory is not writable) before the snippet is stored. The feature’s capability checks (e.g. wpide_snippets_edit_php) are granted to administrators by default and always pass for a CSRF victim. req=/snippets/execute re-runs any stored snippet on demand, making execution persistent and re-triggerable.

Affected Versions

Technical Details

1. CSRF protection scoped to one slug. All eight plugin admin pages share one bootstrap that runs a security service and then an internal router. The service’s gate (in 3.6.2, isProtectedRequest()) requires a strict, character-for-character match between the page parameter and the main slug, instead of matching any plugin page (a prefix match would have sufficed). The seven submenu slugs each contain the literal characters #/, so validation is skipped entirely for all of them. The router dispatches actions via a req GET parameter (for example /createnew or /snippets/save).

2. Code execution on save. The Snippets controllers read their input with json_decode($request->getContent()), parsing the raw request body as JSON regardless of its Content-Type. This restores the CVE-2026-57766 delivery primitive: a plain HTML form with enctype="text/plain" controls most of a cross-site request body, and the stray = introduced by form encoding is absorbed into an unused JSON key. Saving an “active” snippet triggers the activation probe described above; the /snippets/execute route then re-runs any stored snippet on demand.

Proof of Concept

Auto-submitting form on any attacker-controlled page, while an administrator is logged in. Verified against 3.6.0: the injected PHP wrote a timestamped proof file during the save request (its mtime matched the response’s snippet created_at field to the exact second), and a second forged request 21 minutes later re-executed the stored snippet and refreshed the file:

WPIDE ≤ 3.6.4 — CSRF Nonce Bypass Leading to Unauthenticated RCE (CVE-2026-124251)

Detection

Mitigation

Update to WPIDE 3.6.5 or later — 3.6.4 (2026-11-08) enforces request verification across all plugin admin pages, and 3.6.5 additionally refuses text/plain and form-encoded bodies on state-changing requests, removing the cross-site delivery vector. Sites that cannot update immediately should deactivate the plugin. If exploitation is suspected: audit wp-content/ and uploads/wpide-snippets/ for unexpected files, delete unknown snippets, and rotate administrator credentials.

Timeline

Originally published by CyberScoop ↗ · rebuilt here from its own full-text RSS feed · all rights remain with the publisher, please read and support them there.