WP Directory Kit 1.6.3 以前 - 認証不要の SQL インジェクション('post_id' パラメータ)
元情報の公開:2026-12-01 22:02:55 / 更新:2026-12-02 11:30:12(UTC)
日本語訳
WordPress 用の WP Directory Kit プラグインは、バージョン 1.6.3 まで(1.6.3 を含む)において、'wdk_public_action' AJAX ハンドラの 'map_infowindow' アクションの 'post_id' パラメータを介した SQL インジェクションの脆弱性があります。これは、ユーザー提供パラメータのエスケープが不十分であり、既存の SQL クエリの準備が不十分であることが原因です。
$_POST['post_id'] はスラッシュが除去され、SQL エスケープを行わないタグ除去フィルタを通過し、wdk_listing_card() 内でグローバル変数 $wdk_listing_id に昇格され、その後、引用符もキャストも $wpdb->prepare() も使用せずに、生のまま Similar Listings ウィジェットのクエリの WHERE 句に連結され、$wpdb->query() で実行されます。このため、認証不要の攻撃者が既存のクエリに追加の SQL クエリを付加でき、データベースから機密情報を取得することが可能になります。
原文(英語)
WP Directory Kit <= 1.6.3 - Unauthenticated SQL Injection via 'post_id' Parameter
The WP Directory Kit plugin for WordPress is vulnerable to SQL Injection via the 'post_id' parameter of the 'map_infowindow' action of the 'wdk_public_action' AJAX handler in versions up to, and including, 1.6.3 This is due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query — $_POST['post_id'] is stripslashed, passed through a tag-stripping filter that performs no SQL escaping, promoted to the global $wdk_listing_id inside wdk_listing_card(), and then concatenated raw (no quotes, no cast, no $wpdb->prepare()) into the WHERE clause of the Similar Listings widget query that is executed via $wpdb->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.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。