GiveWP 4.19.1以下 - 'donor_default_user_role'パラメーターに関する認証済み(カスタム権限以上)の権限昇格
元情報の公開:2026/11/05 01:08 / 元情報の更新:2026/11/05 13:48(日本時間)
日本語訳
WordPress用プラグイン「GiveWP – Donation Plugin and Fundraising Platform」の4.19.1以下のすべてのバージョンには、donor_default_user_roleパラメーターを介した権限昇格の脆弱性があります。原因は、sanitize_option_donor_default_user_role()関数が、保存時にプラグイン独自のgive_get_donor_safe_user_roles()の許可リストを適用せず、administratorという文字列だけを対象とする限定的な確認を行うことと、give_core_settings_import_callback() AJAXハンドラーが無害化フィルターをまったく呼び出さず、取り込んだJSONをupdate_option()でgive_settingsオプションへ直接書き込むことです。
これにより、manage_give_settings権限を持つGiveWP Managerロール以上の認証済みの攻撃者は、プラットフォームで作成されるすべての新規寄付者アカウントに、特権を持つWordPressロールを付与するよう寄付者登録を設定できます。取り込み経路では管理者ロールも含まれます。設定の保存経路では管理者ロールは拒否されますが、編集者、投稿者など、他の高い権限のロールは受け入れられます。Tools › Import JSONの経路では無害化フィルターが完全に回避され、管理者ロール自体を保存して、その後、新規登録されるすべての寄付者アカウントに適用できます。
原文(英語)
GiveWP <= 4.19.1 - Authenticated (Custom+) Privilege Escalation to 'donor_default_user_role' Parameter
The GiveWP – Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 4.19.1 via the `donor_default_user_role` parameter. This is due to the `sanitize_option_donor_default_user_role()` function applying only a narrow literal check against the string `'administrator'` rather than enforcing the plugin's own `give_get_donor_safe_user_roles()` allowlist on save, and due to the `give_core_settings_import_callback()` AJAX handler writing imported JSON directly into the `give_settings` option via `update_option()` without invoking the sanitize filter at all. This makes it possible for authenticated attackers with the GiveWP Manager role (holding the `manage_give_settings` capability) and above to configure donor registration to assign privileged WordPress roles — up to and including Administrator via the import path — to every new donor account created through the platform. Via the settings save path, the Administrator role is blocked but any other elevated role (Editor, Author, etc.) is accepted; via the Tools › Import JSON path, the sanitize filter is bypassed entirely, allowing the Administrator role itself to be stored and subsequently applied to all newly registered donor accounts.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。