Advanced Members for ACF 1.3.0以下 - アカウントのパスワード変更フォームを介した認証済み(購読者以上)の権限昇格
元情報の公開:2026/11/06 06:55 / 元情報の更新:2026/11/06 20:17(日本時間)
日本語訳
WordPress用プラグイン「Advanced Members for ACF」の1.3.0以下のすべてのバージョンには、[advanced-members-account-password]ショートコードのフォーム送信のacf[_amem_local_user_password]パラメーターを介した権限昇格の脆弱性があります。原因は、acf/fields/class-user-password.phpのpre_update_value関数にあるPHPの演算子の優先順位の不具合です。この不具合は、解決された利用者IDではなく真偽値trueを$user_idに代入します。そのため、PHPの緩やかな等価比較によって、どのログイン済み利用者でも_can_edit()の認可確認を通過し、wp_update_user()がID => trueを整数1へ変換して、無条件に主となる管理者アカウントを対象にします。
これにより、購読者以上の権限を持つ認証済みの攻撃者は、利用者ID 1(サイトの主となる管理者)のパスワードを攻撃者が選んだ値で上書きし、サイトへの完全な管理者アクセスを取得できます。Account::processには保存前にパスワードフィールドを除去することを意図した除外処理がありますが、amem_save_all_fields()がamem()->submissionからフィールド一覧全体を再度読み取り、呼び出し元が指定した除外フィールド配列を通知なしに空配列で上書きするため、この防御は無効になり、パスワードフィールドが必ず処理されます。
原文(英語)
Advanced Members for ACF <= 1.3.0 - Authenticated (Subscriber+) Privilege Escalation via Account Change-Password Form
The Advanced Members for ACF plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 1.3.0 via the `acf[_amem_local_user_password]` parameter of the `[advanced-members-account-password]` shortcode form submission. This is due to a PHP operator-precedence bug in the `pre_update_value` function of `acf/fields/class-user-password.php` that assigns boolean `true` instead of the resolved user ID to `$user_id`, causing the `_can_edit()` authorization check to pass for any logged-in user via PHP loose equality, and causing `wp_update_user()` to cast `'ID' => true` to integer `1` — unconditionally targeting the primary administrator account. This makes it possible for authenticated attackers, with Subscriber-level access and above, to overwrite the password of user ID 1 (the site's primary administrator) with an attacker-chosen value, granting full administrative access to the site. The intended exclusion guard in `Account::process` that strips the password field before saving is defeated because `amem_save_all_fields()` re-reads the full field list from `amem()->submission` and silently overwrites the caller-supplied excluded fields array with an empty array, ensuring the password field is always processed.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。