GeoDirectory 2.8.207以下 - timeなどのフィルター処理されないカスタムフィールドの値を介した認証済みの購読者以上による保存型クロスサイトスクリプティング
元情報の公開:2026/11/26 08:53 / 元情報の更新:2026/11/26 21:35(日本時間)
日本語訳
WordPress用プラグイン「GeoDirectory – WP Business Directory Plugin and Classified Listings Directory」は、2.8.207以下のすべてのバージョンで、入力のサニタイズと出力のエスケープが不十分なため、opentimeパラメータ(field_typeに対応するgeodir_custom_field_value_{type}フィルターがない任意のカスタムフィールド。例えばtime、file、images)を介した保存型クロスサイトスクリプティングの脆弱性があります。購読者以上の権限を持つ認証済みの攻撃者が任意のウェブスクリプトをページに埋め込み、そのページにユーザーがアクセスするたびにスクリプトを実行させることができます。
geodir_cf_time()が生のペイロードをエスケープせずに返すのは、掲載情報がvalue-raw表示モードで描画される場合だけです。例えば[gd_post_meta show="value-raw"]ショートコードやブロックを使う場合が該当し、スクリプト実行にはこの条件が必要です。
原文(英語)
GeoDirectory <= 2.8.207 - Authenticated (Subscriber+) Stored Cross-Site Scripting via 'time' (and other unfiltered) Custom Field Values
The GeoDirectory – WP Business Directory Plugin and Classified Listings Directory plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'opentime (any custom field whose field_type has no geodir_custom_field_value_{type} filter — e.g. time, file, images)' parameter in all versions up to, and including, 2.8.207 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The raw payload is returned unescaped by geodir_cf_time() only when the listing is rendered with the value-raw display mode (e.g., via the [gd_post_meta show="value-raw"] shortcode or block), which is required for script execution.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。