Restrictions for BuddyPress 1.5.4以下 - eval()内のリクエストURIの文字列補間を介した認証不要のリモートコード実行
元情報の公開:2026/11/21 02:33 / 元情報の更新:2026/11/21 14:35(日本時間)
日本語訳
WordPress用プラグイン「Restrictions for BuddyPress」は、1.5.4以下のすべてのバージョンで、リモートコード実行の脆弱性があります。プラグインが攻撃者の制御するリクエストURIを、二重引用符で囲まれた文字列内のPHP式へ組み込み、eval()で評価することが原因です。PHPは二重引用符付き文字列を補間するため、URLパス内の{${...}}形式のペイロードは補間時に実行されます。引用符の境界を突破する必要はなく、WordPressのスラッシュ付加でも防げません。
認証されていない攻撃者が、1回のGETリクエストでサーバー上の任意のコードを実行できます。問題となる条件は出荷時のデフォルトで有効であり、ログイン確認より前に評価されるため、プラグインの設定は不要です。サイトでは、このプラグインとともにBuddyPressとPaid Memberships Proが有効である必要があります。
原文(英語)
Restrictions for BuddyPress <= 1.5.4 - Unauthenticated Remote Code Execution via Request URI String Interpolation in eval()
The Restrictions for BuddyPress plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1.5.4 This is due to the plugin splicing the attacker-controlled request URI into a PHP expression inside a double-quoted string and evaluating it with eval(). Because PHP interpolates double-quoted strings, a payload of the form {${...}} in the URL path is executed during interpolation, so no quote breakout is required and WordPress' slashing does not mitigate it. This makes it possible for unauthenticated attackers to execute arbitrary code on the server with a single GET request. The affected conditions ship enabled by default and are evaluated before any logged-in check, so no plugin configuration is needed; the site must have BuddyPress and Paid Memberships Pro active alongside this plugin.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。