SureDash 1.13.0以下 - /suredash/v1/save-settings RESTエンドポイントにおける認証済み(カスタム権限以上)の権限昇格
元情報の公開:2026/11/13 05:55 / 元情報の更新:2026/11/13 18:35(日本時間)
日本語訳
WordPress用プラグイン「SureDash – Community, Courses & Member Dashboard」の1.13.0以下のすべてのバージョンには、権限昇格の脆弱性があります。原因は、/suredash/v1/save-settingsにあるsave_settings() RESTハンドラーのアクセスがadmin_permission_callback()だけで制限されていることです。このコールバックは、promote_users、edit_users、manage_optionsを要求せず、カスタム権限manage_portal_dashboard(Portal Managerロール)を持つ誰にでも許可を与えます。さらに、sanitize_settings_data()は許可リストを用いずに攻撃者が指定したすべてのキーを順に処理するため、default_roleなどの任意のキーがsanitize_text_field()を変更されずに通過し、ロールの妥当性を確認せず、update_option()を通じてportal_settingsオプションへ永続的に保存されます。
これにより、Portal Manager以上の権限を持つ認証済みの攻撃者は、default_role設定をadministratorに不正変更できます。その後、公開アクセス可能なblock-registerエンドポイントを通じた新規ユーザー登録が行われると、改ざんされた設定が読み取られ、wp_insert_user()へ直接渡されるため、攻撃者の制御下に完全なWordPress管理者アカウントが作成されます。
悪用には2つの手順が必要です。まず、認証が必要なsave-settingsエンドポイントへPOSTしてdefault_roleを上書きし、続いて認証不要のblock-registerエンドポイントを通じて新規登録を開始して、昇格したアカウントを取得します。悪用が成功すると、攻撃者自身のアカウントに完全な管理者ロールが付与されます。
原文(英語)
SureDash <= 1.13.0 - Authenticated (Custom+) Privilege Escalation to /suredash/v1/save-settings REST Endpoint
The SureDash – Community, Courses & Member Dashboard plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 1.13.0 This is due to the `save_settings()` REST handler at `/suredash/v1/save-settings` being gated only by `admin_permission_callback()`, which authorizes any holder of the custom `manage_portal_dashboard` capability (Portal Manager role) without requiring `promote_users`, `edit_users`, or `manage_options`, combined with `sanitize_settings_data()` iterating all attacker-supplied keys with no allow-list, allowing arbitrary keys such as `default_role` to pass through `sanitize_text_field()` unchanged and be persisted into the `portal_settings` option via `update_option()` with no role-validity check. This makes it possible for authenticated attackers with Portal Manager-level access and above to poison the `default_role` setting to `administrator`, after which any subsequent new-user registration through the publicly accessible block-register endpoint reads the corrupted setting and passes it directly to `wp_insert_user()`, producing a full WordPress Administrator account under the attacker's control. The exploit requires two steps: a POST to the authenticated `save-settings` endpoint to overwrite `default_role`, followed by triggering a new registration through the unauthenticated block-register endpoint to receive the escalated account. Successful exploitation causes the attacker's own account to receive the complete administrator role.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。