Groundhogg 4.10以下 - [ghr]ショートコードのpost_title差し込みタグを介した認証不要の保存型クロスサイトスクリプティング
元情報の公開:2026/11/18 07:56 / 元情報の更新:2026/11/18 20:30(日本時間)
日本語訳
WordPress用プラグイン「Groundhogg」は、4.10以下のバージョンで、[ghr]ショートコードのpost_title差し込みタグを介した保存型クロスサイトスクリプティングの脆弱性があります。post_titleの置換はnested => trueで登録されるため、Replacements::do_replacement()の入れ子の分岐は、差し込み値をescape_merge_tags()/escape_shortcodes()へ通さず、tackle_replacements()経由で返します。single_post()コールバックがhtml_entity_decode(get_the_title(), ENT_QUOTES)を呼び出し、寄稿者の投稿タイトル内でwp_filter_ksesがそのまま保持するエンティティエンコード済みテキストを未加工のHTMLへ戻し、描画された投稿へ出力します。
寄稿者以上の権限を持つ認証済みの攻撃者が任意のウェブスクリプトをページに埋め込み、そのページにユーザーがアクセスするたびにスクリプトを実行させることができます。
原文(英語)
Groundhogg <= 4.10 - Unauthenticated Stored Cross-Site Scripting via 'post_title' Merge-Tag of [ghr] Shortcode
The Groundhogg plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'post_title' merge-tag of the [ghr] shortcode in versions up to, and including, 4.10 The post_title replacement is registered with 'nested' => true, so the nested branch of Replacements::do_replacement() returns the merge value through tackle_replacements() without passing it through escape_merge_tags()/escape_shortcodes(); the callback single_post() calls html_entity_decode(get_the_title(), ENT_QUOTES), converting the entity-encoded text that wp_filter_kses leaves intact on a Contributor's post title back into raw HTML, which is then emitted into the rendered post. 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管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。