CVE-2026-125301
WPFront User Role Editor <= 4.2.5 - Authenticated (Subscriber+) Privilege Escalation via Account Takeover to User Switching Cache Short-Circuit
Description
The WPFront User Role Editor plugin for WordPress is vulnerable to Privilege Escalation via Administrator Account Takeover in all versions up to, and including, 4.2.5 The vulnerability exists because the User Switching feature writes the switch-back user stack to the object cache under a site-wide, user-agnostic key (`wpfront_ure_user_switching_stack_<COOKIEHASH>`) with no TTL, while `get_switched_users_stack()` short-circuits all validation on a cache hit — returning the cached administrator stack after only confirming that a cookie with the matching name is present, bypassing `Utils::decrypt()`, the COOKIEHASH comparison, and the 12-hour expiry check — and `admin_bar_menu_actions()` renders the switch-back UI node with no `current_user_can()` check, and the `current_user_can(self::CAP)` gate in `switch_user()` executes only after `wp_set_current_user($admin_id)` has already replaced the request context, causing it to evaluate against the administrator's capabilities rather than the attacker's. This makes it possible for authenticated attackers with Subscriber-level access and above to obtain a valid switch-back nonce bound to their own ID, trigger `wp_set_auth_cookie()` for an administrator account, and achieve complete site takeover — including the ability to manage options, install plugins, edit themes, and manipulate user accounts. Exploitation requires that a persistent object cache (e.g., Redis or Memcached) is active on the site and that an administrator has used the Switch To feature at least once while the attacker maintains an active authenticated session. Successful exploitation gives the attacker control of a distinct, already-privileged Administrator account; it does not promote the attacker's original account.
Severity (CVSS)
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Weakness
- CWE-269 Improper Privilege Management
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| WPFront User Role Editor |
affected up to and including 4.2.5
Other versions: unaffected
|
Is my server affected?
This CVE is in WPFront User Role Editor of syammohanm, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.
Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.
References
Other references
- https://www.wordfence.com/threat-intel/vulnerabilities/id/63b409ea-8352-4748-b0c0-2c82d5b17183?source=cve wordfence.com
- https://plugins.trac.wordpress.org/browser/wpfront-user-role-editor/tags/4.2.5/includes/users/class-user-switching.php#L320 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/wpfront-user-role-editor/tags/4.2.5/includes/users/class-user-switching.php#L442 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/wpfront-user-role-editor/tags/4.2.5/includes/users/class-user-switching.php#L480 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/wpfront-user-role-editor/tags/4.2.5/includes/users/class-user-switching.php#L273 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/wpfront-user-role-editor/tags/4.2.5/includes/users/class-user-switching.php#L368 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/wpfront-user-role-editor/tags/4.2.5/includes/users/class-user-switching.php#L110 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/wpfront-user-role-editor/tags/4.2.6 plugins.trac.wordpress.org
Source: the record CVE-2026-125301 of the CVE List (CVE Program), CVE Terms of Use; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse