CVE-2026-125301: WPFront User Role Editor <= 4.2.5 - Authenticated (Subscriber+) Privilege Escalation via Account Takeover to User Switching Cache Short-Circuit

Published Dec 2, 2026
·
Updated

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 (wpfrontureuserswitchingstack<COOKIEHASH>) with no TTL, while getswitchedusersstack() 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 adminbarmenuactions() renders the switch-back UI node with no currentusercan() check, and the currentusercan(self::CAP) gate in switchuser() executes only after wpsetcurrentuser($adminid) 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 wpsetauthcookie() 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.

Affected Software

1 affected component
WPFront WPFront User Role Editor<=4.2.5

Event History

Dec 2, 2026
CVE Published
via MITRE·11:30 AM
Data Sourced
via MITRE·11:30 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What level of access does an attacker need?

An attacker must be authenticated to WordPress with at least Subscriber-level access. No user interaction is required.

2

What conditions are needed for exploitation?

The User Switching feature's cached switch-back stack must contain an administrator stack under the site-wide cache key, and the attacker must present a cookie with the matching name. The cache entry has no TTL, and a cache hit bypasses the normal decryption, COOKIEHASH, and 12-hour expiry validation.

3

What is the likely impact if exploitation succeeds?

A Subscriber or other low-privileged authenticated user can take over an administrator account through the user-switching flow. This can lead to high impact on confidentiality, integrity, and availability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203