WPFront User Role Editor <= 4.2.5 - 認証済み(Subscriber以上)特権昇格:アカウント乗っ取りによるユーザー切替キャッシュのショートサーキット
元情報の公開:2026-12-01 22:03:58 / 更新:2026-12-02 11:30:09(UTC)
日本語訳
WordPress 用 WPFront User Role Editor プラグインは、バージョン 4.2.5 まで(4.2.5 を含む)において、管理者アカウントの乗っ取りによる特権昇格の脆弱性があります。この脆弱性は、ユーザー切替機能がサイト全体でユーザーに依存しないキー(`wpfront_ure_user_switching_stack_<COOKIEHASH>`)でオブジェクトキャッシュに切替元ユーザーのスタックを書き込み、TTL を設定しないことに起因します。`get_switched_users_stack()` はキャッシュがヒットした場合にすべての検証をショートサーキットし、該当する名前のクッキーが存在することだけを確認してキャッシュされた管理者スタックを返します。この際、`Utils::decrypt()`、COOKIEHASH の比較、12 時間の有効期限チェックがバイパスされます。さらに `admin_bar_menu_actions()` は `current_user_can()` のチェックなしに切替戻り用 UI ノードを表示し、`switch_user()` 内の `current_user_can(self::CAP)` の判定は、`wp_set_current_user($admin_id)` がすでにリクエストコンテキストを管理者に置き換えた後に実行されるため、攻撃者ではなく管理者の権限で評価されます。
このため、Subscriber レベル以上の認証済み攻撃者は自分の ID に紐付いた有効な切替戻り nonce を取得し、管理者アカウントに対して `wp_set_auth_cookie()` を呼び出すことで、オプションの管理、プラグインのインストール、テーマの編集、ユーザーアカウントの操作など、サイト全体の支配を実現できます。攻撃の成立には、サイトで永続的なオブジェクトキャッシュ(例:Redis や Memcached)が有効化されており、管理者が少なくとも一度は「Switch To」機能を使用していること、そして攻撃者が認証済みセッションを維持していることが条件です。成功した場合、攻撃者は既に権限を持つ別の管理者アカウントを制御できるようになりますが、攻撃者自身の元のアカウントが昇格するわけではありません。
原文(英語)
WPFront User Role Editor <= 4.2.5 - Authenticated (Subscriber+) Privilege Escalation via Account Takeover to User Switching Cache Short-Circuit
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.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。