Widgets for Social Photo Feed 1.8.3以下 - widget-idショートコード属性を介した認証済みの寄稿者以上による保存型クロスサイトスクリプティング
元情報の公開:2026/11/26 06:03 / 元情報の更新:2026/11/26 18:33(日本時間)
日本語訳
WordPress用プラグイン「Widgets for Social Photo Feed」は、1.8.3以下のバージョンで、[trustindex-feed]ショートコードのwidget-id属性を介した保存型クロスサイトスクリプティングの脆弱性があります。registerWidget()関数で入力のサニタイズと出力のエスケープが不十分なことが原因です。この関数は未加工のショートコード属性を二重引用符で囲まれたJavaScript文字列リテラルへ直接連結し、その後wp_add_inline_script()で読み込み対象として登録して、wp_footer/admin_footerで描画します。
寄稿者以上の権限を持つ認証済みの攻撃者が任意のウェブスクリプトをページに埋め込み、そのページにユーザーがアクセスするたびにスクリプトを実行させることができます。
原文(英語)
Widgets for Social Photo Feed <= 1.8.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'widget-id' Shortcode Attribute
The Widgets for Social Photo Feed plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'widget-id' shortcode attribute of the [trustindex-feed] shortcode in versions up to, and including, 1.8.3 This is due to insufficient input sanitization and output escaping in the registerWidget() function, which concatenates the raw shortcode attribute directly into a double-quoted JavaScript string literal that is then enqueued via wp_add_inline_script() and rendered in wp_footer/admin_footer. 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.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。