Opens in a new tab
Published : November 15, 2026

CVE-2026-124251: WPIDE – File Manager & Code Editor <= 3.6.4 Cross-Site Request Forgery PoC, Patch Analysis & Rule

Plugin wpide
Severity Medium (CVSS 4.3)
CWE 352
Vulnerable Version 3.6.4
Patched Version 3.6.5
Disclosed November 9, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-124251: The WPIDE – File Manager & Code Editor plugin for WordPress (versions up to and including 3.6.4) is vulnerable to Cross-Site Request Forgery (CSRF) due to missing nonce validation on an unspecified function. An unauthenticated attacker can trick a site administrator into performing an unauthorized action, such as clicking a link, which executes a forged request. The CVSS score is 4.3 (Medium), and the CWE is 352 (Cross-Site Request Forgery).

The root cause lies in the plugin’s security check located in `wpide/App/Services/Security/Security.php`. The vulnerable version (3.6.4) validates the request method and nonce (via the `$config` array), but does not restrict the request’s `Content-Type` header. This allows an attacker to craft a request with a `Content-Type` such as `text/plain` or `application/x-www-form-urlencoded` that bypasses typical CSRF protections (e.g., WordPress nonce checks) because the nonce is not validated for these content types. The patch adds an `isAllowedContentType` method and a check in the security handler to reject any content type that is not `application/json`, `multipart/form-data`, or empty. This blocks HTML form submissions that can be triggered cross-site.

Exploitation requires the attacker to host a malicious HTML page containing a form that auto-submits to the vulnerable endpoint. The endpoint is any WPIDE AJAX action (e.g., `wp_ajax_wpide_*`) that is protected by the flawed security check. The attacker sets the form’s `enctype` to `text/plain` or `application/x-www-form-urlencoded`, includes the necessary parameters (e.g., `action`, file path, content), and lures a logged-in administrator to visit the page. The administrator’s browser sends the forged request with the admin’s cookies, and the plugin processes the action without validating the nonce, leading to unauthorized file operations (e.g., file upload, deletion, or code execution).

The patch in version 3.6.5 adds a `Content-Type` check in `Security.php` after the method and nonce validation. The `isAllowedContentType` function allows only `application/json`, `multipart/form-data`, and an empty content type. Any other content type (e.g., `text/plain`, `application/x-www-form-urlencoded`) returns a 415 Unsupported Media Type error and logs the event. This prevents CSRF attacks that rely on HTML form submissions, as those forms cannot send `application/json` or `multipart/form-data` without CORS preflight (which would be blocked). The patch effectively closes the CSRF vector by enforcing the expected content types for the plugin’s AJAX endpoints.

If exploited, this vulnerability allows an unauthenticated attacker to perform arbitrary file operations (upload, edit, delete) within the WordPress installation, potentially leading to remote code execution by uploading a malicious PHP file. The attacker must trick an administrator into visiting a malicious page, but once the forged request is processed, the attacker gains the same privileges as the administrator for the targeted action. This can result in full site compromise, data theft, or defacement.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/wpide/App/Services/Security/Security.php
+++ b/wpide/App/Services/Security/Security.php
@@ -47,6 +47,16 @@
                 $this->logger->log($message);
                 die;
             }
+
+            // The app only sends JSON, multipart uploads or empty bodies. HTML forms can
+            // also send text/plain and urlencoded bodies, so refuse those as well.
+            if (!$this->isAllowedContentType((string) $this->request->headers->get('Content-Type'))) {
+                $message = "Unsupported content type";
+                $this->response->json($message, 415);
+                $this->response->send();
+                $this->logger->log($message);
+                die;
+            }
         }

         if (! empty($config['ip_whitelist'])) $config['ip_allowlist'] = $config['ip_whitelist']; // deprecated, compatibility
@@ -86,4 +96,11 @@
         }

     }
+
+    protected function isAllowedContentType(string $contentType): bool
+    {
+        $type = strtolower(trim(explode(';', $contentType)[0]));
+
+        return in_array($type, ['', 'application/json', 'multipart/form-data'], true);
+    }
 }
--- a/wpide/_constants.php
+++ b/wpide/_constants.php
@@ -9,7 +9,7 @@
 define(__NAMESPACE__ . 'SLUG', 'wpide');
 define(__NAMESPACE__ . 'NAME', 'WPIDE');

-define(__NAMESPACE__ . 'VERSION', '3.6.4');
+define(__NAMESPACE__ . 'VERSION', '3.6.5');
 define(__NAMESPACE__ . 'FM_VERSION', '7.8.1');

 define(__NAMESPACE__ . 'AUTHOR', 'XplodedThemes');
--- a/wpide/wpide.php
+++ b/wpide/wpide.php
@@ -11,7 +11,7 @@
  * Plugin Name: WPIDE - File Manager & Code Editor
  * Plugin URI:  https://wpide.com
  * Description: WordPress file manager and code editor with code snippets, featuring auto-completion of both WordPress and PHP functions with reference, syntax highlighting, line numbers, tabbed editing, automatic backup, image editor & much more!
- * Version:     3.6.4
+ * Version:     3.6.5
  * Requires PHP: 7.4.0
  * Requires at least: 5.9
  * Author:      XplodedThemes

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:20261242,phase:2,deny,status:403,chain,msg:'CVE-2026-124251 via WPIDE AJAX CSRF',severity:'CRITICAL',tag:'CVE-2026-124251'"
  SecRule ARGS_POST:action "@streq wpide_save_file" "chain"
    SecRule REQUEST_HEADERS:Content-Type "@rx ^(text/plain|application/x-www-form-urlencoded)" "t:lowercase"

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.