Simple Membership 4.9.0以前 — swpm_bulk_change_level_toパラメータを介した認証済み寄稿者以上から管理者への権限昇格
元情報の公開:2026/11/26 23:37 / 元情報の更新:2026/11/27 12:33(日本時間)
日本語訳
WordPressプラグイン「Simple Membership」の4.9.0以前のすべてのバージョンには、権限昇格の脆弱性があります。bulk_operation_menu()関数は、$_REQUESTからswpm_bulk_change_level_toパラメータを受け取り、sanitize_text_field()だけを適用してSwpmMemberUtils::update_membership_level_and_role()へ渡します。プラグイン内のほかのすべてのレベル選択経路で適用される、id != 1という許可対象からの除外がありません。このため、新規インストール時にインストーラーが必ずWordPressのadministratorロールへ対応付ける会員レベル1を、一括変更先として自由に選択できます。
寄稿者以上の権限を持つ認証済みの攻撃者は、自分のWordPressアカウントを完全な管理者ロールへ昇格できます。プラグインのインストール、ユーザーの作成、そのほかすべての管理者権限を含む、サイトの完全な制御が可能になります。
悪用には、管理者があらかじめ「Admin Dashboard Access Permission」設定を、既定のmanage_optionsからedit_posts(寄稿者)、edit_published_posts(投稿者)、edit_pages(編集者)などへ引き下げている必要があります。これは既定ではない、アクセスを委任する設定です。一括操作画面にはnonce保護(swpm_bulk_change_level_nonce_action)がありますが、委任された低い権限のユーザーがすでに開ける同じページでnonceが出力されるため、問題の緩和にはなりません。悪用が成功すると、攻撃者自身のアカウントに完全な管理者ロールが付与されます。
原文(英語)
Simple Membership <= 4.9.0 - Authenticated (Contributor+) Privilege Escalation to Administrator via 'swpm_bulk_change_level_to' Parameter
The Simple Membership plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 4.9.0 The vulnerability exists because the `bulk_operation_menu()` function accepts the `swpm_bulk_change_level_to` parameter from `$_REQUEST` with only `sanitize_text_field()` applied, and passes it to `SwpmMemberUtils::update_membership_level_and_role()` without the `id != 1` allowlist exclusion that every other level-selection path in the plugin enforces — leaving membership level 1, which the installer maps to the WordPress `administrator` role on every fresh install, freely selectable as a bulk-change target. This makes it possible for authenticated attackers with Contributor-level access and above to elevate their own WordPress account to the full Administrator role, gaining complete site control including plugin installation, user creation, and all other administrator capabilities. Exploitation requires that an administrator has first lowered the plugin's "Admin Dashboard Access Permission" setting from its default of `manage_options` to a lesser capability such as `edit_posts` (Contributor), `edit_published_posts` (Author), or `edit_pages` (Editor), which is a non-default granted-access configuration; the bulk screen's nonce protection (`swpm_bulk_change_level_nonce_action`) does not mitigate the issue because the nonce is emitted on the same page the delegated lower-role user can already reach. Successful exploitation causes the attacker's own account to receive the complete administrator role.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。