Skip to main content
Vulnerability Database/CVE-2026-109394

CVE-2026-109394: Thirty Bees Auth Bypass Vulnerability

CVE-2026-109394 is an authentication bypass flaw in Thirty Bees that allows attackers to reset passwords using guest tokens. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-109394 Overview

CVE-2026-109394 is an authentication bypass vulnerability in Thirty bees versions through 1.7.0. The flaw resides in the PasswordController::resolveCustomer() method and allows unauthenticated attackers to take over registered customer accounts. An attacker places a guest order using the victim's email address, obtains the guest secure key, and then uses that token to reset the registered customer's password. The vulnerability requires that guest checkout is enabled, which is a common configuration for e-commerce storefronts. The weakness is categorized as [CWE-639] (Authorization Bypass Through User-Controlled Key).

Critical Impact

Unauthenticated attackers can hijack any registered customer account by abusing guest checkout tokens to bypass the password reset flow.

Affected Products

  • Thirty bees e-commerce platform versions through 1.7.0
  • Deployments with guest checkout enabled
  • controllers/front/PasswordController.php component

Discovery Timeline

  • 2026-10-12 - CVE-2026-109394 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-109394

Vulnerability Analysis

The vulnerability lives in the resolveCustomer() method of PasswordController. The method accepts a token and an id_customer parameter from the request and performs a database lookup for a customer whose secure_key matches the supplied token. The query does not distinguish between a registered customer's secure key and a guest customer's secure key. Thirty bees stores guest checkout customers in the same customer table as registered users, and each guest record carries its own secure_key.

When a guest order is placed using the victim's email address, the application creates a separate guest record associated with that email. The attacker retrieves the guest secure_key from the order confirmation flow. Submitting the guest token together with the registered customer's id_customer satisfies the broken check, allowing the attacker to proceed to the password reset step.

Root Cause

The lookup trusts any secure_key present in the customer table rather than verifying that the key belongs to the specific id_customer whose password is being reset. The query joins the token to a row by secure_key only, then loads the account by email, enabling token confusion between guest and registered accounts.

Attack Vector

Exploitation requires network access to the storefront and guest checkout enabled. The attacker places a guest order using the victim's email, extracts the guest secure key from the order flow, and submits a password reset request supplying the guest token with the victim's id_customer. The application accepts the mismatched token and completes the account takeover.

php
     */
    protected static function resolveCustomer()
    {
-        $token = Tools::getValue('token');
+        $token = (string)Tools::getValue('token');
        $idCustomer = Tools::getIntValue('id_customer');
        if ($token && $idCustomer) {
-            $email = Db::readOnly()->getValue(
-                (new DbQuery())
-                    ->select('c.`email`')
-                    ->from('customer', 'c')
-                    ->where('c.`secure_key` = \''.pSQL($token).'\'')
-                    ->where('c.`id_customer` = '.(int) $idCustomer)
-            );
-            if ($email) {
-                $customer = new Customer();
-                $customer->getByemail($email);
-                if (!Validate::isLoadedObject($customer)) {
-                    throw new PrestaShopException(Tools::displayError('Customer account not found'));
-                }
+            $customer = new Customer($idCustomer);
+            if (Validate::isLoadedObject($customer) && $customer->secure_key === $token) {
                if (!$customer->active) {
                    throw new PrestaShopException(Tools::displayError('You cannot regenerate the password for this account.'));
                }

Source: GitHub Commit 66410fd. The patch loads the Customer object directly by id_customer and performs a strict comparison between the stored secure_key and the supplied token, eliminating cross-account token acceptance.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-109394

Indicators of Compromise

  • Password reset requests to PasswordController where the supplied token does not match the secure_key of the referenced id_customer.
  • Guest orders placed with email addresses that also belong to registered customer accounts, followed shortly by password reset requests for those accounts.
  • Successful password changes for registered customers without a matching user-initiated reset in session logs.

Detection Strategies

  • Review web server access logs for GET or POST requests to the password controller endpoint containing both token and id_customer parameters.
  • Correlate guest order creation events with subsequent password reset activity targeting the same email address within a short time window.
  • Audit the customer table for duplicate records sharing an email address between a guest entry and a registered account.

Monitoring Recommendations

  • Enable detailed logging on front controller password reset routes and alert on anomalous volumes of reset submissions.
  • Monitor successful customer logins immediately following password changes from unfamiliar source IPs or user agents.
  • Track administrative changes to customer email addresses or secure keys that occur outside normal user workflows.

How to Mitigate CVE-2026-109394

Immediate Actions Required

  • Apply the upstream fix from GitHub Commit 66410fd to controllers/front/PasswordController.php.
  • Disable guest checkout temporarily on affected storefronts until the patch is deployed.
  • Force password resets for customer accounts that may have been targeted and invalidate active sessions.

Patch Information

The maintainers addressed the issue by rewriting resolveCustomer() to load the Customer object by id_customer and perform a strict identity check against the stored secure_key. Review the VulnCheck Advisory on Thirty Bees and the HackMD Security Analysis Document for full technical context. Operators running Thirty bees 1.7.0 or earlier should upgrade to a build that includes the commit referenced above.

Workarounds

  • Disable guest checkout in the Thirty bees back office to remove the precondition for exploitation.
  • Apply a web application firewall rule that rejects password reset requests when the supplied token and id_customer do not match a registered account.
  • Remove orphan guest customer records whose email matches a registered customer to reduce token collision opportunities.
bash
# Verify installed Thirty bees version and locate the vulnerable controller
grep -R "resolveCustomer" /var/www/thirtybees/controllers/front/PasswordController.php

# Backup the controller before patching
cp /var/www/thirtybees/controllers/front/PasswordController.php \
   /var/www/thirtybees/controllers/front/PasswordController.php.bak

# Pull the upstream fix
curl -L -o /tmp/PasswordController.php \
   https://raw.githubusercontent.com/thirtybees/thirtybees/66410fd2a7ca9d1121a4b9551f59637ae6e4bcf1/controllers/front/PasswordController.php

# Replace the vulnerable file and clear the application cache
mv /tmp/PasswordController.php /var/www/thirtybees/controllers/front/PasswordController.php
rm -rf /var/www/thirtybees/cache/smarty/compile/* /var/www/thirtybees/cache/smarty/cache/*

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.