WPC Frequently Bought Together for WooCommerce 8.0.2以下 - variationパラメータを介した認証不要の保存型クロスサイトスクリプティング
元情報の公開:2026/11/21 06:05 / 元情報の更新:2026/11/21 18:31(日本時間)
日本語訳
WordPress用プラグイン「WPC Frequently Bought Together for WooCommerce」は、8.0.2以下のすべてのバージョンで、入力のサニタイズと出力のエスケープが不十分なため、variationパラメータを介した保存型クロスサイトスクリプティングの脆弱性があります。認証されていない攻撃者が任意のウェブスクリプトをページに埋め込み、そのページにユーザーがアクセスするたびにスクリプトを実行させることができます。
woobt_add_all_to_cart AJAXハンドラーを保護するnonceは、wp_localize_scriptを通じて認証されていないすべての訪問者へ出力されます。これにより認証の障壁としてのnonceは事実上無効となり、ログインせずにハンドラーへアクセスできます。
原文(英語)
WPC Frequently Bought Together for WooCommerce <= 8.0.2 - Unauthenticated Stored Cross-Site Scripting via 'variation' Parameter
The WPC Frequently Bought Together for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'variation' parameter in all versions up to, and including, 8.0.2 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The nonce protecting the woobt_add_all_to_cart AJAX handler is emitted to all unauthenticated visitors via wp_localize_script, effectively nullifying the nonce as an authentication barrier and making the handler reachable without any login.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。