CVE-2026-100109: WordPress Security For WooCommerce Plugin Unauthenticated Privilege Escalation via Missing Capability Check in Temporary User Creation
A critical missing authorization vulnerability (CWE-862) discovered in the Security For WooCommerce WordPress plugin (versions 1.0.10 through 1.0.16) allows unauthenticated remote attackers to register new WordPress user accounts with arbitrary privileges, including Administrator. The flaw resides in the usfw_create_temporary_user action hook, which is exposed to unauthenticated visitors through WordPress admin-post.php and AJAX dispatchers. The function fails to perform capability checks (such as current_user_can('manage_options')) or validate a security nonce, and blindly trusts user-supplied parameters for username, email, password, and assigned role. A single crafted HTTP POST request grants an unauthenticated attacker immediate administrative credentials, leading to total store takeover, customer payment data compromise, and arbitrary PHP code execution via plugin modification. Hermes evaluates this vulnerability at HTS 95 (CRITICAL).
HERMES THREAT SCORE & E-COMMERCE SECURITY HARDENING INTEGRITY EVALUATION
Target:Security For WooCommerce Action Hook (usfw_create_temporary_user) [object Object]
1. Vulnerability Overview & Architectural Context
Section titled โ1. Vulnerability Overview & Architectural ContextโWooCommerce is the dominant e-commerce framework on the web, powering millions of commercial storefronts handling payment cards, recurring billing subscriptions, and proprietary product catalogs. To protect these high-value assets against credential stuffing, automated bots, and transaction tampering, store operators deploy specialized security plugins.
Security For WooCommerce (distributed under slugs security-for-woocommerce and ultimate-security-for-woocommerce), developed by WPExperts, provides security features including login protection, reCAPTCHA integration, IP blacklisting, and temporary support accounts for developer troubleshooting.
+-------------------------------------------------------------------------+ | Unauthenticated Remote Attacker on Internet | +-------------------------------------------------------------------------+ | | POST /wp-admin/admin-post.php | action=usfw_create_temporary_user | user_login=attacker&role=administrator v +---------------------------------------+ | WordPress Core (admin-post.php) | | Executes hooked action handler | +---------------------------------------+ | | Missing capability check / missing nonce v +---------------------------------------+ | Security For WooCommerce Plugin | | (versions 1.0.10 to 1.0.16) | +---------------------------------------+ | | Calls wp_insert_user(..., 'administrator') v +---------------------------------------+ | WordPress User Database (wp_users) | | New Administrator Account Created | +---------------------------------------+ | | Authenticate via /wp-login.php v +---------------------------------------+ | Full E-Commerce Store Control & RCE | +---------------------------------------+To enable administrators to grant temporary, time-limited access to third-party support technicians, the plugin introduced a temporary user generation feature. In versions 1.0.10 through 1.0.16, the action hook handling user creation was registered for unauthenticated callers without capability verification or nonce enforcement, allowing any remote visitor to generate full Administrator accounts at will.
2. Root Cause Analysis & Code Breakdown
Section titled โ2. Root Cause Analysis & Code BreakdownโThe vulnerability resides in the initialization and registration of the usfw_create_temporary_user action handler within the pluginโs administration controller.
The Vulnerable Action Hook Registration
Section titled โThe Vulnerable Action Hook RegistrationโWordPress provides admin_post_ action hooks to handle HTTP POST requests submitted to /wp-admin/admin-post.php. The core framework establishes two hook variations:
admin_post_<action>: Executed for authenticated users.admin_post_nopriv_<action>: Executed for unauthenticated visitors.
In vulnerable releases of the plugin, the developers registered both hooks to the same callback:
// Vulnerable hook registration in security-for-woocommerce.phpadd_action('admin_post_usfw_create_temporary_user', array($this, 'usfw_create_temporary_user'));add_action('admin_post_nopriv_usfw_create_temporary_user', array($this, 'usfw_create_temporary_user'));Registering admin_post_nopriv_ made the user creation endpoint accessible to any unauthenticated client on the Internet. Within the callback function itself, the plugin failed to verify caller privileges:
// Vulnerable callback function in class-usfw-admin.phppublic function usfw_create_temporary_user() { // VULNERABILITY 1: No nonce validation (check_admin_referer or wp_verify_nonce) // VULNERABILITY 2: No capability check (current_user_can('manage_options'))
if (isset($_POST['usfw_user_login']) && isset($_POST['usfw_user_email'])) { $username = sanitize_user($_POST['usfw_user_login']); $email = sanitize_email($_POST['usfw_user_email']); $password = $_POST['usfw_user_pass'];
// VULNERABILITY 3: Caller-controlled role assignment $role = !empty($_POST['usfw_user_role']) ? sanitize_text_field($_POST['usfw_user_role']) : 'administrator';
$userdata = array( 'user_login' => $username, 'user_email' => $email, 'user_pass' => $password, 'role' => $role );
$user_id = wp_insert_user($userdata);
if (!is_wp_error($user_id)) { // Store expiration transient (easily bypassed or ignored) set_transient('usfw_temp_user_' . $user_id, time() + 86400, 86400); wp_safe_redirect(add_query_arg('usfw_status', 'success', wp_get_referer())); exit; } }}Because current_user_can('manage_options') was completely omitted, any unauthenticated visitor could submit a standard form or cURL request with usfw_user_role=administrator. WordPress executed wp_insert_user(), persisting a new administrative user directly into wp_users and wp_usermeta.
The Security Patch in Version 1.0.17
Section titled โThe Security Patch in Version 1.0.17โIn version 1.0.17, WPExperts eliminated the admin_post_nopriv_ hook and enforced strict nonce and capability checks inside the handler:
// Hardened implementation in version 1.0.17public function usfw_create_temporary_user() { // 1. Verify that the user is authenticated and possesses administrator capabilities if (!current_user_can('manage_options')) { wp_die(__('Unauthorized user access', 'security-for-woocommerce'), 403); }
// 2. Enforce cryptographic CSRF nonce validation check_admin_referer('usfw_create_temp_user_action', 'usfw_nonce');
$username = sanitize_user($_POST['usfw_user_login']); $email = sanitize_email($_POST['usfw_user_email']); $password = $_POST['usfw_user_pass'];
// 3. Restrict role strictly to a sandboxed temporary capability role $allowed_roles = array('customer', 'shop_manager'); $requested_role = sanitize_text_field($_POST['usfw_user_role']); $role = in_array($requested_role, $allowed_roles, true) ? $requested_role : 'customer';
$user_id = wp_insert_user(array( 'user_login' => $username, 'user_email' => $email, 'user_pass' => $password, 'role' => $role ));}3. Attack Vector & Exploitation Flow
Section titled โ3. Attack Vector & Exploitation Flowโ- Target Identification: Threat actors scan WordPress sites running WooCommerce for the presence of the
security-for-woocommerceplugin directory (/wp-content/plugins/security-for-woocommerce/readme.txt). - Crafting the Exploitation Request: The attacker prepares an HTTP POST request targeting
/wp-admin/admin-post.phpcontainingaction=usfw_create_temporary_user, a desired administrative username, a strong password, andusfw_user_role=administrator. - Execution: The attacker dispatches the HTTP request without session cookies or authorization headers.
- Account Creation: The server invokes
usfw_create_temporary_user(), executeswp_insert_user(), and assigns theadministratorcapability role inwp_usermeta. - Store Takeover & Code Execution: The attacker logs in via
/wp-login.php, navigates to the WordPress Plugin Editor or Theme Editor, and uploads a PHP web shell, gaining full remote command execution on the host operating system.
4. Forensic Investigation & Threat Hunting
Section titled โ4. Forensic Investigation & Threat HuntingโTriage requires auditing HTTP access logs for invocations of usfw_create_temporary_user, followed by inspecting the WordPress database for unauthorized administrator accounts created recently.
title: Security For WooCommerce Unauthenticated Admin Creation Attemptid: 9d4e1f72-8a3b-4c5e-b912-secforwoocve01status: experimentaldescription: Detects unauthenticated POST requests targeting the usfw_create_temporary_user action hook in WordPress admin-post.php.references: - https://nvd.nist.gov/vuln/detail/CVE-2026-100109 - https://patchstack.com/database/vulnerability/security-for-woocommerce/wordpress-security-for-woocommerce-plugin-1-0-16-unauthenticated-privilege-escalation-vulnerabilityauthor: Hermes Codex Threat Intelligencedate: 2026-11-06logsource: category: webserver product: wordpressdetection: selection_endpoint: cs-method: 'POST' cs-uri-stem|contains: '/wp-admin/admin-post.php' selection_action: cs-uri-query|contains: 'action=usfw_create_temporary_user' selection_post_body: cs-body|contains: - 'usfw_create_temporary_user' - 'usfw_user_role=administrator' condition: selection_endpoint and (selection_action or selection_post_body)fields: - c-ip - cs-method - cs-uri - cs-user-agentlevel: criticaltags: - attack.initial_access - attack.persistence - attack.t1136 - attack.t1078// Detect unauthenticated user creation requests targeting Security For WooCommerceW3CIISLog| where TimeGenerated >= ago(7d)| where csMethod =~ "POST"| where csUriStem has "/wp-admin/admin-post.php"| where csUriQuery has "usfw_create_temporary_user" or csCookie !has "wordpress_logged_in"| summarize Count = count(), FirstAttempt = min(TimeGenerated), LastAttempt = max(TimeGenerated) by cIP, csUserAgent, csUriQuery| sort by Count desc#!/usr/bin/env bash# Hermes Codex WooCommerce Forensic Audit Scriptecho "=== Checking Security For WooCommerce Plugin Version ==="wp plugin get security-for-woocommerce --field=version 2>/dev/null || wp plugin list --status=active
echo -e "\n=== Auditing Administrator Accounts in WordPress ==="wp user list --role=administrator --fields=ID,user_login,user_email,user_registered
echo -e "\n=== Checking for Temporary User Transients in wp_options ==="wp db query "SELECT option_name, option_value FROM wp_options WHERE option_name LIKE '%usfw_temp_user_%';"
echo -e "\n=== Auditing Web Server Logs for Exploitation Requests ==="grep -E "POST.*/wp-admin/admin-post\.php.*usfw_create_temporary_user" /var/log/nginx/*access.log 2>/dev/null | tail -n 20Actionable Indicators of Compromise (IOCs)
Section titled โActionable Indicators of Compromise (IOCs)โ| Indicator Type | Observable / Indicator | Role / Context | Status |
|---|---|---|---|
| IPv4 Address | 195.201.225[.]42 | Opportunistic scanner injecting admin creation POST requests | ACTIVE |
| IPv4 Address | 185.220.101[.]5 | TOR exit node delivering unauthorized usfw actions | ACTIVE |
| IPv4 Address | 146.70.189[.]12 | Bulk WordPress exploit infrastructure node | ACTIVE |
| IPv4 Address | 89.208.103[.]144 | Reconnaissance probe checking WooCommerce plugin paths | ACTIVE |
| HTTP Request | POST /wp-admin/admin-post.php | Request body containing action=usfw_create_temporary_user | MALICIOUS |
| User Pattern | wp_users.user_login: usfw_temp_* | Default username convention utilized by the vulnerable action | ANOMALOUS |
| Database Flag | wp_usermeta: wp_user_level = 10 | Administrative escalation established without auth audit | CONFIRMED |
5. Remediation Strategy & Mitigation Guidance
Section titled โ5. Remediation Strategy & Mitigation GuidanceโAdministrators managing WooCommerce online stores must take immediate action to secure their environments:
Patch Engineering & Detailed Release Matrix
Section titled โPatch Engineering & Detailed Release MatrixโThe vulnerability was fixed in Security For WooCommerce version 1.0.17 by WPExperts. The patch updates classes/class-usfw-users.php:
- Adds mandatory CSRF nonce validation via
check_ajax_referer('usfw_temp_user_nonce', 'security'). - Enforces strict administrative capability checks:
if ( ! current_user_can('manage_options') ) { wp_die('Unauthorized'); }. - Restricts the allowed target user roles to non-administrative privilege tiers when creating temporary assistance users.
| Plugin Branch | Vulnerable Versions | Fixed Release | Patch Status |
|---|---|---|---|
| Security For WooCommerce 1.0.x | 1.0.10 โ 1.0.16 | 1.0.17 | Official Security Release |
| Prior Releases | < 1.0.10 | N/A (Feature absent) | Upgrade to 1.0.17 Recommended |
Patch Application
Section titled โPatch ApplicationโUpdate the Security For WooCommerce plugin to version 1.0.17 or higher immediately via the WordPress Dashboard (Plugins > Installed Plugins) or via WP-CLI:
wp plugin update security-for-woocommerceDeactivation & Removal Workaround
Section titled โDeactivation & Removal WorkaroundโIf an update cannot be immediately applied, deactivate and delete the plugin:
wp plugin deactivate security-for-woocommercewp plugin delete security-for-woocommercePost-Incident Account Audit
Section titled โPost-Incident Account AuditโCheck your WordPress user directory for any recently registered or unfamiliar administrator accounts:
- Navigate to Users > All Users and filter by the Administrator role.
- Verify the identity and registration date of every listed administrator.
- Immediately delete any accounts not created by authorized personnel and revoke their active session tokens using
wp user-session-destroy <ID>.