Product Import Export for WooCommerce 2.6.9以下 - 商品レビューのインポート時のプレースホルダー再展開を介した認証不要の保存型クロスサイトスクリプティング

元情報の公開:2026/11/21 04:08 / 元情報の更新:2026/11/21 16:45(日本時間)

日本語訳

WordPress用プラグイン「Product Import Export for WooCommerce – CSV Product Importer & Exporter」は、2.6.9以下のすべてのバージョンで、入力のサニタイズと出力のエスケープが不十分なため、author(wp-comments-post.phpを通じて最初に保存される値)/インポート時のCSVセルパラメータを介した保存型クロスサイトスクリプティングの脆弱性があります。認証されていない攻撃者が任意のウェブスクリプトをページに埋め込み、そのページにユーザーがアクセスするたびにスクリプトを実行させることができます。

悪用には、管理者が攻撃者のレビューを承認し、プラグインのデフォルトの列マッピングを使用してエクスポートと再インポートを行い、インポート時にINSERT分岐へ進む必要があります。この分岐へは、データベースのテーブル接頭辞が文字どおりのwp_ではないサイト、CSVにcomment_IDのマッピングがない場合、または元のレビューがゴミ箱へ移されている場合に自動的に進みます。悪用の成功にはさらに管理者による操作が必要であり、攻撃者だけでこの脆弱性を発動させることはできません。

原文(英語)

Product Import Export for WooCommerce <= 2.6.9 - Unauthenticated Stored Cross-Site Scripting via Product Review Import Placeholder Re-expansion

The Product Import Export for WooCommerce – CSV Product Importer & Exporter plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'author (initial store via wp-comments-post.php) / CSV cell on import' parameter in all versions up to, and including, 2.6.9 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 exploit requires an administrator to approve the attacker's review, then export and re-import it using the plugin's default column mapping, with the import taking the INSERT branch — which occurs automatically on any site whose database table prefix is not the literal 'wp_', when the CSV has no comment_ID mapping, or when the original review has been trashed. Successful exploitation additionally requires an action by an administrator — the attacker cannot trigger the vulnerability on their own.

引用元:Wordfence

確認と対応の進め方

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

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

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

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

運営元KanriPressのサービス案内

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

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

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