WPIDE CSRF Nonce Bypass Enables Unauthenticated RCE (CVE-2026-124251)

· Original article ↗

Summary

A CSRF nonce-check bypass in WPIDE can let an unauthenticated attacker make a logged-in administrator trigger PHP execution. The article reports affected versions through 3.6.4 and recommends updating to 3.6.5 or later.

Key points

  • The nonce check reportedly runs only for the main WPIDE page slug; requests using submenu slugs bypass validation.
  • An attacker can target a logged-in administrator with a forged cross-site request; the attacker does not need an account.
  • The article describes saving an active PHP snippet as the route to server-side code execution, with a separate route to rerun stored snippets.
  • The bypass was verified against WPIDE 3.6.0; source review reportedly confirmed the issue in 3.6.2. The CVE record lists versions through 3.6.4 as affected.
  • WPIDE 3.6.5 or later is recommended. The article also advises deactivating the plugin if an immediate update is not possible.
  • If exploitation is suspected, the article recommends checking for unexpected files and snippets and rotating administrator credentials.

Article Details

Attack Vectors
  • An attacker-controlled page can auto-submit a cross-site request to a logged-in WordPress administrator. WPIDE skips CSRF validation for submenu page slugs containing the literal `#/` fragment.
  • The forged request can invoke `req=/snippets/save` with an active PHP snippet. WPIDE executes the attacker-controlled PHP during the save request, using `include` or, if the directory is not writable, `eval()`.
  • The `req=/snippets/execute` route can re-run a stored snippet, allowing execution to be triggered again.
Defensive Notes
  • Update WPIDE to version 3.6.5 or later. The article says version 3.6.4 enforces request verification across plugin admin pages, while 3.6.5 also rejects text/plain and form-encoded bodies on state-changing requests.
  • If an update is not immediately possible, deactivate WPIDE.
  • If exploitation is suspected, inspect `wp-content/` and `uploads/wpide-snippets/` for unexpected files, remove snippets administrators did not create, and rotate administrator credentials.

MITRE ATT&CK

CVE

People

Products

Related Articles