Flying Images: Optimize and Lazy Load Images for Faster Page Speed 2.4.16以下 - post_contentパラメータを介した認証済みの寄稿者以上による保存型クロスサイトスクリプティング
元情報の公開:2026/11/18 06:17 / 元情報の更新:2026/11/18 18:29(日本時間)
日本語訳
WordPress用プラグイン「Flying Images: Optimize and Lazy Load Images for Faster Page Speed」は、2.4.16以下のすべてのバージョンで、入力のサニタイズと出力のエスケープが不十分なため、post_contentパラメータを介した保存型クロスサイトスクリプティングの脆弱性があります。寄稿者以上の権限を持つ認証済みの攻撃者が任意のウェブスクリプトをページに埋め込み、そのページにユーザーがアクセスするたびにスクリプトを実行させることができます。
保存時にwp_kses_postが投稿内容をサニタイズしていても、ペイロードはその時点ではksesで許可されたものです。プラグインの出力バッファー書き換え処理が、値のないdata-src属性をエスケープされていないsrc値で上書きし、描画時に実行可能な形へ変換します。そのため、保存時のサニタイズは実効的な対策になりません。
原文(英語)
Flying Images: Optimize and Lazy Load Images for Faster Page Speed <= 2.4.16 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'post_content' Parameter
The Flying Images: Optimize and Lazy Load Images for Faster Page Speed plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'post_content' parameter in all versions up to, and including, 2.4.16 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Although wp_kses_post sanitizes post content on save, the payload is kses-legal at save time; the plugin's output-buffer rewrite transforms it into an executable form at render time by overwriting the valueless data-src attribute with the unescaped src value, meaning save-time sanitization provides no effective mitigation.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。