EZ SQL Reports Shortcode Widget and DB Backup 5.26.45以下 - sqlgetvarショートコードとコメントのUser-Agentを介した認証不要の保存型クロスサイトスクリプティング
元情報の公開:2026/11/21 04:00 / 元情報の更新:2026/11/21 16:45(日本時間)
日本語訳
WordPress用プラグイン「EZ SQL Reports Shortcode Widget and DB Backup」は、5.26.45以下のすべてのバージョンで、入力のサニタイズと出力のエスケープが不十分なため、User-Agentヘッダー(comment_agentへ保存される値)パラメータを介した保存型クロスサイトスクリプティングの脆弱性があります。認証されていない攻撃者が任意のウェブスクリプトをページに埋め込み、そのページにユーザーがアクセスするたびにスクリプトを実行させることができます。
悪用の成功には、管理者がcomment_agentなどの攻撃者の制御するデータを選択するSQLクエリを持つレポートを保存しており、攻撃者がその保存済みレポートのスラッグを特定できる必要があります。管理者が[SQLREPORT]ショートコードを使って公開ページにレポートを掲載している場合、この条件は容易に満たされます。
原文(英語)
EZ SQL Reports Shortcode Widget and DB Backup <= 5.26.45 - Unauthenticated Stored Cross-Site Scripting via Comment User-Agent via sqlgetvar Shortcode
The EZ SQL Reports Shortcode Widget and DB Backup plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'User-Agent header (stored to comment_agent)' parameter in all versions up to, and including, 5.26.45 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. Successful exploitation requires that an administrator has saved a report whose SQL query selects attacker-controlled data such as comment_agent, and that the attacker can identify the saved report's slug — a condition trivially met when the administrator publishes the report on a public page via the [SQLREPORT] shortcode.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。