Atomic Edge analysis of CVE-2026-131579: The Hippoo Mobile App for WooCommerce plugin (versions up to and including 1.13.0) contains a critical Missing Authorization vulnerability in its REST API extension mechanism. The plugin registers a custom REST namespace `wc-hippoo/v1/ext/` that mirrors WordPress core REST routes, including `/wp/v2/settings`, `/wp/v2/users`, `/wp/v2/plugins`, and `/wp/v2/themes`. When an authenticated attacker with subscriber-level access (or higher) triggers a request to any of these mirrored routes, the plugin’s `hippoo_rest_re_register_external_routes()` function copies the original route and replaces its `permission_callback` with `__return_true` via the `hippoo_extension_permission_check` filter. This effectively bypasses all capability checks, allowing subscribers to perform administrator-level actions, such as modifying site options (`blogname`, `blogdescription`), creating users, or activating plugins. The CVSS score is 7.5 (High), reflecting the potential for privilege escalation and site compromise.
Root Cause: The vulnerability stems from the `hippoo_permissions_override_extension_permission_callback()` function in `hippoo/app/permissions/access.php`. The function is hooked to the `hippoo_extension_permission_check` filter and is called for every route copied into the `wc-hippoo/v1/ext/` namespace. It retrieves the current user’s role-based permissions via `hippoo_permissions_get_user_permissions()` and checks if the user has `access_extensions` enabled. If the extensions allowlist (`$allowed_slugs`) is empty, the function returns `__return_true`, granting access unconditionally. Prior to the patch, the function did not verify that the route being overridden was actually a plugin-related route; it applied the override to all routes, including core WordPress routes. Additionally, the function did not re-apply the original capability requirements of the core routes. The patched version restricts the override to only routes that begin with `/wp/v` and contain `/plugins`, and when the allowlist is empty, it returns the default callback instead of `__return_true`. Furthermore, it now returns a closure that checks the requested plugin slug against the allowlist, ensuring that only permitted plugins are accessed.
Exploitation: An attacker with a valid subscriber account can exploit this vulnerability by sending a POST request to the mirrored settings endpoint: `/wp-json/wc-hippoo/v1/ext/wp/v2/settings`. The attacker must include a JSON payload containing the desired settings changes, such as `{“blogname”: “Hacked”, “blogdescription”: “Compromised”}`. Because the permission callback is overridden to `__return_true`, the request bypasses the normal `manage_options` capability check and successfully updates the site options. Similarly, the attacker could target other mirrored routes like `/wp-json/wc-hippoo/v1/ext/wp/v2/users` to create a new administrator user, or `/wp-json/wc-hippoo/v1/ext/wp/v2/plugins` to activate a malicious plugin. The attack requires that the subscriber role has been granted `access_extensions` permission in the Hippoo Role & Permissions settings, which is the default configuration on sites without any Hippoo extension plugins installed. No nonce or additional authentication is required beyond a valid session cookie.
Patch Analysis: The patch modifies the `hippoo_permissions_override_extension_permission_callback()` function to add strict route checking. It now only applies the permission override to routes that match the pattern `^/wp/v[0-9]+/plugins`, thereby excluding core routes like `/wp/v2/settings`, `/wp/v2/users`, and `/wp/v2/themes`. For plugin routes, if the extensions allowlist is empty, the function returns the original `$default_callback` (which enforces the core capability checks) instead of `__return_true`. When the allowlist is non-empty, it returns a closure that validates the requested plugin slug against the allowed list. This ensures that even if a route is mirrored, the original permission checks are preserved, and only explicitly allowed plugin routes can be accessed with elevated permissions. The patch also includes a database migration and other unrelated changes, but the core security fix is localized to the permission callback logic.
Impact: Successful exploitation allows an authenticated subscriber to perform administrative actions, including modifying site settings, creating administrator accounts, activating or deactivating plugins, and potentially achieving remote code execution by uploading a malicious plugin. This leads to complete site compromise, data theft, and persistence. The vulnerability affects all versions up to 1.13.0 and is fixed in 1.13.1.







