iubenda | All-in-one Compliance for GDPR / CCPA Cookie Consent + more 3.13.6以下 - IUB-COOKIE-BLOCKマーカー経由のコメント内容を介した認証不要の格納型クロスサイトスクリプティング
元情報の公開:2026/11/06 22:56 / 元情報の更新:2026/11/07 11:29(日本時間)
日本語訳
WordPress用プラグイン「iubenda | All-in-one Compliance for GDPR / CCPA Cookie Consent + more」の3.13.6以下のバージョンには、格納型クロスサイトスクリプティングの脆弱性があります。原因は、WordPressが保存されたコメントをKSESでフィルタリングした後に、iubendaParser::parse_comments()がIUB-COOKIE-BLOCKマーカー内のHTMLを同梱のsimple_html_domパーサーで再処理する方法にあります。simple_html_domのremove_noise()はcode要素の内容を決定的なキー(___noise___ 1000)で保存し、後でrestore_noise()が、属性値内で一致する部分文字列を再エスケープせずに置換します。そのため、許可されたcode要素内に隠された引用符を抜け出すペイロードを、描画時に、許可されたabbr要素のtitle属性(値が___noise___ 1000)へ挿入できます。
これにより、認証されていない攻撃者はページに任意のWebスクリプトを挿入できます。WordPressの既定のcomment_previously_approved設定の下で管理者が最初のコメント(承認されなければ保留されるもの)を承認すると、利用者がそのページにアクセスするたびにスクリプトが実行されます。
原文(英語)
iubenda | All-in-one Compliance for GDPR / CCPA Cookie Consent + more <= 3.13.6 - Unauthenticated Stored Cross-Site Scripting via Comment Content via IUB-COOKIE-BLOCK Marker
The iubenda | All-in-one Compliance for GDPR / CCPA Cookie Consent + more plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 3.13.6. This is due to the way iubendaParser::parse_comments() re-processes HTML inside IUB-COOKIE-BLOCK markers through the bundled simple_html_dom parser after WordPress has already KSES-filtered the saved comment: simple_html_dom's remove_noise() stores <code> bodies under a deterministic key ('___noise___ 1000') and restore_noise() later substitutes any matching substring back into attribute values WITHOUT re-escaping, allowing a quote-breaking payload stashed in an allowed <code> element to be injected into an allowed <abbr title="___noise___ 1000"> attribute at render time. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page, after an administrator approves the first (otherwise moderated) comment under WordPress's default comment_previously_approved setting.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。