ShortPixel Image Optimizer 6.6.1以下 - CDN URL書き換え処理のコメント内容を介した認証不要の保存型クロスサイトスクリプティング
元情報の公開:2026/11/21 04:44 / 元情報の更新:2026/11/21 16:45(日本時間)
日本語訳
WordPress用プラグイン「ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF」は、6.6.1以下のすべてのバージョンで、入力のサニタイズと出力のエスケープが不十分なため、commentパラメータを介した保存型クロスサイトスクリプティングの脆弱性があります。認証されていない攻撃者が任意のウェブスクリプトをページに埋め込み、そのページにユーザーがアクセスするたびにスクリプトを実行させることができます。
悪用には、管理者が「Deliver WebP/AVIF images using the ShortPixel CDN」(useCDN)オプションを有効にしている必要があります。その後、認証されていないどの訪問者も、acronym要素のtitle属性(<acronym title="...">)などの許可されたHTML構造内に細工したurl()ペイロードを含むコメントを送信できます。WordPressのコメント用ksesは保存時にこれを保持します。危険な属性境界の突破は、ksesが適用されないob_start出力バッファーの書き換え処理内で、描画時にだけ発生します。
原文(英語)
ShortPixel Image Optimizer <= 6.6.1 - Unauthenticated Stored Cross-Site Scripting via Comment Content via CDN URL Rewriter
The ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 6.6.1 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. Exploitation requires the administrator to have enabled the 'Deliver WebP/AVIF images using the ShortPixel CDN' (useCDN) option, after which any unauthenticated visitor can submit a comment containing a crafted url() payload inside an allowed HTML construct such as <acronym title="...">, which WordPress comment kses preserves on save; the dangerous attribute-boundary breakout occurs only at render time inside the ob_start output-buffer rewriter, where kses does not apply.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。