修正版ありSimple Membership

Simple Membership 4.9.0以前 — roleパラメータを介した認証済み寄稿者以上から管理者への権限昇格

元情報の公開:2026/11/26 23:36 / 元情報の更新:2026/11/27 12:33(日本時間)

日本語訳

WordPressプラグイン「Simple Membership」の4.9.0以前のすべてのバージョンには、権限昇格の脆弱性があります。SwpmLevelForm::role()関数は、ユーザーが指定するroleパラメータにsanitize_text_field()だけを適用し、許可リストで制限していません。そのため、administratorロールをそのままswpm_membership_tblに保存できます。swpm_membership_level_changedアクションが発火すると、update_wp_user_role()内の$user->add_role()を通じて、そのロールが会員のWordPressアカウントに適用されます。この処理にもロールの許可リストはありません。

寄稿者以上の権限を持つ認証済みの攻撃者は、WordPressのadministratorロールを指定した会員レベルを作成して自分に割り当て、自分のWordPressアカウントを完全な管理者へ昇格できます。プラグインのインストール、テーマの編集、ユーザーの管理を含む、サイトの完全な制御が可能になります。

悪用には、サイト所有者がプラグインの「Admin Dashboard Access Permission」設定を、既定のmanage_optionsからedit_posts、edit_published_posts、edit_pagesなどのより低い権限へ引き下げている必要があります。この設定により、低い権限のユーザーが、問題のレベル作成フォームがあるSWPM管理画面へアクセスできるようになります。悪用が成功すると、攻撃者自身のアカウントに完全な管理者ロールが付与されます。

原文(英語)

Simple Membership <= 4.9.0 - Authenticated (Contributor+) Privilege Escalation to Administrator via 'role' Parameter

The Simple Membership plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 4.9.0 This is due to the `SwpmLevelForm::role()` function applying only `sanitize_text_field()` to the user-supplied `role` parameter with no allowlist, permitting the `administrator` role to be stored verbatim into `swpm_membership_tbl` and subsequently applied to a member's WordPress account via `$user->add_role()` inside `update_wp_user_role()` — also without any role allowlist — when the `swpm_membership_level_changed` action fires. This makes it possible for authenticated attackers with Contributor-level access and above to create a membership level specifying the `administrator` WordPress role, assign themselves to that level, and thereby elevate their own WordPress account to full Administrator, gaining complete site control including the ability to install plugins, edit themes, and manage users. Exploitation requires that the site owner has lowered the plugin's "Admin Dashboard Access Permission" setting from its default `manage_options` capability to a lesser capability such as `edit_posts`, `edit_published_posts`, or `edit_pages`, which grants lower-privileged users access to the SWPM admin dashboard where the vulnerable level-creation form resides. Successful exploitation causes the attacker's own account to receive the complete administrator role.

引用元:Wordfence

確認と対応の進め方

WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。

影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。

更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。

プラグインの管理・更新方法(WordPress公式・日本語)

運営元KanriPressのサービス案内

サイトを守る備えを、今日から始めませんか。

「KanriPress WP Sakimori」は、ファイアウォールと仮想パッチで攻撃に備え、マルウェア検査と継続監視でサイトの異変を捉えます。毎日のバックアップで万一に備え、月次レポートで保護・監視の状況も確認。日々の管理負担を抑えながらWordPressを守る仕組みを、月額2,200円(税込)で導入できます。

サービス内容・料金を見る