修正版ありwpForo Forum

wpForo Forum 3.2.2以下 - 'data[secondary_groupids]' CSVパラメーターに関する認証済み(購読者以上)の権限昇格

元情報の公開:2026/11/07 06:21 / 元情報の更新:2026/11/07 18:25(日本時間)

日本語訳

WordPress用プラグイン「wpForo Forum」の3.2.2以下のすべてのバージョンには、wpforo_action_profile_update POSTハンドラーのdata[secondary_groupids]パラメーターを介した権限昇格の脆弱性があります。原因は、classes/Members.phpのMembers::update()関数内にあるsecondary_groupidsの認可チェックの型混同です。スカラーのCSV文字列(例えば「0,1」)を(array)でキャストしてからarray_map('intval', …)とarray_filter()を実行すると空配列になり、チェックの外側の条件式と、本来は更新対象からこのフィールドを除去するelse分岐の両方が完全に回避されます。一方、その後のencode()/decode()は元のCSVを正しく分割し、攻撃者が指定したグループIDをwp_wpforo_profiles.secondary_groupidsへ永続的に保存します。

これにより、購読者以上の権限を持つ認証済みの攻撃者は、特権を持つAdminグループのIDを挿入して、フォーラム内の権限をwpForo管理者へ昇格できます。その結果、Forum Accessesエディターへのアクセス、全メンバーに適用されるフォーラム全体の権限ポリシーの書き換え、他の利用者が所有する任意のコンテンツの編集が可能になります。悪用には、プラグインの既定のスパム対策条件min_number_posts_to_edit_accountを満たすため、攻撃者に承認済みのwpForo投稿が少なくとも3件あり、自分のアカウントのプロフィールフォームから取得した有効なwpforo nonceもある必要があります。

原文(英語)

wpForo Forum <= 3.2.2 - Authenticated (Subscriber+) Privilege Escalation to 'data[secondary_groupids]' CSV Parameter

The wpForo Forum plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 3.2.2 via the `data[secondary_groupids]` parameter of the `wpforo_action_profile_update` POST handler. This is due to a type-confusion flaw in the secondary_groupids authorization guard within the `Members::update()` function in `classes/Members.php`, where casting a scalar CSV string (e.g. `"0,1"`) with `(array)` before `array_map('intval', …)` and `array_filter()` produces an empty array — causing the guard's outer conditional, and the else-branch that would otherwise strip the field from the update, to be bypassed entirely — while `encode()`/`decode()` downstream correctly explodes the original CSV and persists the attacker-supplied group IDs to `wp_wpforo_profiles.secondary_groupids`. This makes it possible for authenticated attackers, with Subscriber-level access and above, to escalate their forum privileges to wpForo Administrator by injecting the privileged Admin group ID, granting access to the Forum Accesses editor and the ability to rewrite forum-wide capability policies for all members and edit arbitrary content owned by other users. Exploitation requires the attacker to have at least 3 approved wpForo posts to satisfy the plugin's default `min_number_posts_to_edit_account` antispam gate, along with a valid wpforo nonce obtained from their own account profile form.

引用元:Wordfence

確認と対応の進め方

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

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

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

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

運営元KanriPressのサービス案内

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

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

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