Photo Gallery, Sliders, Proofing and Themes 4.5.5以下 - /ngg_tag/〈tag〉/のajax_pagination_referrerパラメーターを介した認証不要の格納型クロスサイトスクリプティング
元情報の公開:2026/11/20 06:24 / 元情報の更新:2026/11/20 18:34(日本時間)
日本語訳
原文欠損のお知らせ:Wordfence APIの説明文は途中で途切れています。以下は取得できた原文の範囲を翻訳したもので、欠けている内容は補っていません。訳文の末尾も原文に合わせて途中で終わっています。
WordPress用プラグイン「NextGEN Gallery」は、4.5.5以下のバージョンで、/ngg_tag/〈tag〉/タクソノミーページで使用されるajax_pagination_referrerリクエストパラメーターを介した格納型クロスサイトスクリプティングの脆弱性があります。プラグインがページ送りの基準URLを$_REQUESTから読み取り、タグのルートで攻撃者が指定したホストを保持することが原因です。このルートではngg_wprouting_add_post_permalinkが強制的にfalseになるため、プラグインはリンクの基準をサイト自身のパーマリンクへ変更しません。さらに、NGG_RENDERING_CACHE / PHOTOCRATI_CACHEを通じて、リクエストURIだけをキーにし、リクエスト本文をキーに含めないトランジェントに、描画済みのページ全体を1,800秒間キャッシュします。
これにより、認証不要の攻撃者はキャッシュされた/ngg_tag/〈tag〉/ページを汚染し、ページ送りのリンクを攻撃者が制御するホストへ向けることができます。プラグイン自体のajax_pagination.
原文(英語)
Photo Gallery, Sliders, Proofing and Themes <= 4.5.5 - Unauthenticated Stored Cross-Site Scripting via 'ajax_pagination_referrer' Parameter on /ngg_tag/<tag>/
The NextGEN Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 4.5.5 via the 'ajax_pagination_referrer' request parameter used on the /ngg_tag/<tag>/ taxonomy page. This is due to the plugin reading the pagination base URL from $_REQUEST, preserving the attacker-supplied host on the tag route (where ngg_wprouting_add_post_permalink is forced to false so the plugin does not re-base the links to the site's own permalink), and caching the fully rendered page in a transient keyed only on the request URI (not the request body) for 1800 seconds via NGG_RENDERING_CACHE / PHOTOCRATI_CACHE. This makes it possible for unauthenticated attackers to poison the cached /ngg_tag/<tag>/ page so that its pagination links point to an attacker-controlled host; the plugin's own ajax_pagination.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。