GeoDirectory 2.8.208以下 - stypeパラメータを介した認証不要のSQLインジェクション

元情報の公開:2026/11/26 11:26 / 元情報の更新:2026/11/26 23:36(日本時間)

日本語訳

WordPress用プラグイン「GeoDirectory – WP Business Directory Plugin and Classified Listings Directory」は、2.8.208以下のすべてのバージョンで、ユーザー指定パラメータのエスケープと既存SQLクエリの準備処理が不十分なため、stypeパラメータを介した汎用的なSQLインジェクションの脆弱性があります。認証されていない攻撃者が既存のクエリにSQLクエリを追加し、データベースから機密情報を取得できます。

付属のmu-pluginは、デフォルトの「Enable Fast AJAX」が有効な場合、インストール時に自動でコピーされます。このmu-pluginは、gd-ajax=1を持つ公開側のすべてのリクエストでDOING_AJAXを定義します。geodir_get_current_posttype()の無条件の分岐が、許可リストの検査で取り除かれた後の、攻撃者が制御するstype値を復元するため、その値が準備処理なしでSQLの処理箇所へ到達し、悪用できます。

原文(英語)

GeoDirectory <= 2.8.208 - Unauthenticated SQL Injection via 'stype' Parameter

The GeoDirectory – WP Business Directory Plugin and Classified Listings Directory plugin for WordPress is vulnerable to generic SQL Injection via the 'stype' parameter in all versions up to, and including, 2.8.208 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. This is possible because the plugin's mu-plugin companion (copied automatically on install when the default 'Enable Fast AJAX' option is on) defines DOING_AJAX on any front-end request carrying gd-ajax=1, and an unconditional branch in geodir_get_current_posttype() restores the attacker-controlled stype value after the allow-list check clears it, allowing the tainted value to reach the SQL sink without any preparation.

引用元:Wordfence

確認と対応の進め方

WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。

影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。

更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。

プラグインの管理・更新方法(WordPress公式・日本語)

運営元KanriPressのサービス案内

サイトを守る備えを、今日から始めませんか。

「KanriPress WP Sakimori」は、ファイアウォールと仮想パッチで攻撃に備え、マルウェア検査と継続監視でサイトの異変を捉えます。毎日のバックアップで万一に備え、月次レポートで保護・監視の状況も確認。日々の管理負担を抑えながらWordPressを守る仕組みを、月額2,200円(税込)で導入できます。

サービス内容・料金を見る