WPFront User Role Editor に脆弱性 — CVE-2026-125301
いま何をすべきか
WPFront User Role Editor を 4.2.6 以降に更新してください。
影響を受けるバージョン
- 4.2.5 以下のすべて
対象: プラグイン「WPFront User Role Editor」(wpfront-user-role-editor)
何が起きるのか
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.
ここから先の選択肢
1. 自分たちで対応する
更新の手順、バックアップの取り方、壊れたときの戻し方をまとめています。
2. いまの制作会社・保守業者に頼む
WPFront User Role Editor を使っているかどうかを含めて確認を依頼してください。 無料診断を実行すると、そのまま渡せる依頼文を作れます。
3. 相談先がない・自分では難しい
連絡が取れる相手がいない、管理画面に入れない、侵入された疑いがある。 そうした場合はご相談ください。
出典
- https://plugins.trac.wordpress.org/browser/wpfront-user-role-editor/tags/4.2.5/includes/users/class-user-switching.php#L110
- https://plugins.trac.wordpress.org/browser/wpfront-user-role-editor/tags/4.2.5/includes/users/class-user-switching.php#L273
- https://plugins.trac.wordpress.org/browser/wpfront-user-role-editor/tags/4.2.5/includes/users/class-user-switching.php#L320
- https://plugins.trac.wordpress.org/browser/wpfront-user-role-editor/tags/4.2.5/includes/users/class-user-switching.php#L368
- https://plugins.trac.wordpress.org/browser/wpfront-user-role-editor/tags/4.2.5/includes/users/class-user-switching.php#L442
- https://plugins.trac.wordpress.org/browser/wpfront-user-role-editor/tags/4.2.5/includes/users/class-user-switching.php#L480