GeoDirectory 2.8.200以下 - post_content内の入れ子の'[gd_dynamic_content]'ショートコードを介した認証不要の格納型クロスサイトスクリプティング
元情報の公開:2026/11/06 22:48 / 元情報の更新:2026/11/07 11:29(日本時間)
日本語訳
WordPress用プラグイン「GeoDirectory – WP Business Directory Plugin and Classified Listings Directory」の2.8.200以下のすべてのバージョンには、入力の無害化と出力のエスケープが不十分なため、post_contentパラメーターを介した格納型クロスサイトスクリプティングの脆弱性があります。これにより、認証されていない攻撃者はページに任意のWebスクリプトを挿入でき、利用者がそのページにアクセスするたびにスクリプトが実行されます。
入れ子のショートコードのペイロード([gd_dynamic_conten[gd_tags]t ...])は、WordPressのstrip_shortcodes()が登録済みタグを1回しか処理しないため、プラグインのgeodir_strip_shortcodes()による防御を回避します。また、ksesはショートコードの属性値ではなくHTMLタグを検査するため、結果としてできるショートコード内のHTMLエンティティでエンコードされた属性はwp_kses_post()を通過して残ります。
原文(英語)
GeoDirectory <= 2.8.200 - Unauthenticated Stored Cross-Site Scripting via Nested '[gd_dynamic_content]' Shortcode in post_content
The GeoDirectory – WP Business Directory Plugin and Classified Listings Directory plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'post_content' parameter in all versions up to, and including, 2.8.200 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. The nested shortcode payload ([gd_dynamic_conten[gd_tags]t ...]) defeats the plugin's geodir_strip_shortcodes() guard because WordPress's strip_shortcodes() performs only a single pass over registered tags, and HTML-entity-encoded attributes in the resulting shortcode survive wp_kses_post() because kses inspects HTML tags rather than shortcode attribute values.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。