Smart Cookie Kit 2.3.2以下 - 同梱のSimple HTML DOMのノイズ復元によるコメント内容を介した認証不要の格納型クロスサイトスクリプティング
元情報の公開:2026/11/06 07:01 / 元情報の更新:2026/11/06 20:17(日本時間)
日本語訳
WordPress用プラグイン「Smart Cookie Kit」の2.3.2以下のすべてのバージョンには、入力の無害化と出力のエスケープが不十分なため、commentパラメーターを介した格納型クロスサイトスクリプティングの脆弱性があります。これにより、認証されていない攻撃者はページに任意のWebスクリプトを挿入でき、利用者がそのページにアクセスするたびにスクリプトが実行されます。
ペイロードは、許可されたHTML要素内に有害な文字を保存することで、保存時のwp_ksesを通過するように細工したものです。属性を抜け出すダブルクォートを、許可されたcode要素の内容に紛れ込ませ、プラグイン自身の出力バッファーが描画時に初めてabbr要素のtitle属性へ復元します。悪用には、管理者がコメントを承認し、その後、対象の公開投稿を閲覧する必要があります。
原文(英語)
Smart Cookie Kit <= 2.3.2 - Unauthenticated Stored Cross-Site Scripting via Comment Content via Bundled Simple HTML DOM Noise Restoration
The Smart Cookie Kit plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 2.3.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 payload is specifically crafted to survive wp_kses on save by storing hostile characters inside allowed HTML elements, with the attribute-breaking double-quote smuggled inside a permitted <code> body and reconstructed into a <abbr title> attribute only at render time by the plugin's own output buffer; exploitation requires an administrator to approve the comment and subsequently view the affected public post.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
修正版が未確認の製品は、まず提供元の最新情報を確認してください。記事の取得時点より後に修正版が公開されている場合があります。
プラグインの代替を探す場合は、必要な機能と既存データの移行方法を確認してください。削除前にバックアップを確保し、代替製品の動作を検証してください。