修正版ありBuddyForms

BuddyForms 2.10.5以下 - 'bf_post_type'パラメーターによるフォームタイプの混同を介した認証不要の権限昇格

元情報の公開:2026/11/06 07:00 / 元情報の更新:2026/11/06 20:17(日本時間)

日本語訳

WordPress用プラグイン「BuddyForms」の2.10.5以下のすべてのバージョンには、bf_post_typeパラメーターを通じたフォームタイプの混同攻撃による権限昇格の脆弱性があります。原因は、公開フロントエンド送信ハンドラーbuddyforms_form_response_no_ajax()が、対象フォームのpublic_submitフラグだけでログアウト状態の送信を許可する一方、新規オブジェクトの投稿タイプの決定では、攻撃者が指定した$_POST['bf_post_type']を独立して信頼することです。2.10.2で導入された照合は既存の投稿(post_id != 0)だけに適用され、新規オブジェクト作成では完全に回避されます。さらに、save_postリスナーbuddyforms_edit_form_save_meta_box_data()にはcurrent_user_can()による権限確認とフォームビルダーのnonceの両方がなく、新しく挿入されたbuddyformsカスタム投稿タイプの投稿に対し、攻撃者指定の$_POST['buddyforms_options']を無条件に保存します。

これにより、認証されていない攻撃者は、攻撃者が制御するnew_user_role値を含む不正なBuddyFormsフォーム設定を、稼働中のグローバルなフォーム登録情報に挿入できます。その後、そのフォームから利用者登録を送信し、管理者権限を持つ新規WordPressアカウントを作成して、サイト全体を乗っ取れます。悪用には、WordPressサイトで「だれでもユーザー登録ができるようにする」が有効で、少なくとも1つの公開BuddyFormsフォームがページに配置されている必要があります。どちらもBuddyFormsの標準的な導入設定です。

原文(英語)

BuddyForms <= 2.10.5 - Unauthenticated Privilege Escalation to Form-Type Confusion via 'bf_post_type' Parameter

The BuddyForms plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 2.10.5 via a form-type confusion attack through the `bf_post_type` parameter. This is due to the public frontend submission handler `buddyforms_form_response_no_ajax()` authorizing logged-out submissions based solely on the target form's `public_submit` flag while independently trusting the attacker-supplied `$_POST['bf_post_type']` to determine the post type of the newly created object — a cross-check introduced in 2.10.2 applies only to existing posts (`post_id != 0`) and is completely bypassed for new-object creation — combined with the `save_post` listener `buddyforms_edit_form_save_meta_box_data()` lacking both a `current_user_can()` capability check and a form-builder nonce, causing it to unconditionally persist attacker-supplied `$_POST['buddyforms_options']` for any newly inserted `buddyforms` CPT post. This makes it possible for unauthenticated attackers to insert a rogue BuddyForms form configuration with an attacker-controlled `new_user_role` value into the live global form registry, then submit a registration through that form to create a new WordPress account with administrator-level privileges and achieve full site takeover. Exploitation requires the WordPress site to have "Anyone can register" enabled and at least one public BuddyForms form attached to a page, both of which are standard BuddyForms deployment configurations.

引用元:Wordfence

確認と対応の進め方

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

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

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

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

運営元KanriPressのサービス案内

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

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

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