Maps Plugin using Google Maps for WordPress 1.9.9以下 - JSONインポートのcategoriesオブジェクトキーを介した認証済みの購読者以上によるSQLインジェクション

元情報の公開:2026/11/26 08:58 / 元情報の更新:2026/11/26 21:35(日本時間)

日本語訳

WordPress用プラグイン「Maps Plugin using Google Maps for WordPress - WP Google Map」は、1.9.9以下のバージョンで、インポートされたJSONファイルから解析されるcategoriesエントリーの配列キーを介したSQLインジェクションの脆弱性があります。wgm_handle_import()関数は、各カテゴリーオブジェクトの既知の名前を持つ値(name、icon)だけをサニタイズし、攻撃者が制御するJSONオブジェクトのキーを直接$wpdb->insert()へ渡します。$wpdb->insert()は、キーに含まれるバッククォートをエスケープせず、生成するINSERT文の列名として組み込むことが原因です。

プラグイン独自の「Minimum Role for Map Editor」設定が、設定画面に用意された5つの値の1つである「Subscriber」に設定されている場合、購読者以上の権限を持つ認証済みの攻撃者が既存のクエリにSQLクエリを追加できます。これにより、管理者のパスワードハッシュを含む機密情報をデータベースから取得できます。

原文(英語)

Maps Plugin using Google Maps for WordPress <= 1.9.9 - Authenticated (Subscriber+) SQL Injection via 'categories' JSON Import Object Keys

The Maps Plugin using Google Maps for WordPress - WP Google Map plugin for WordPress is vulnerable to SQL Injection via the array keys of the `categories` entries parsed from an imported JSON file in versions up to, and including, 1.9.9 This is due to the wgm_handle_import() function sanitizing only the known-named VALUES (`name`, `icon`) of each category object while passing the attacker-controlled JSON object KEYS directly to `$wpdb->insert()`, which interpolates them as column names into the generated INSERT statement without escaping embedded backticks. This makes it possible for authenticated attackers, with Subscriber-level access and above (when the plugin's own 'Minimum Role for Map Editor' setting has been configured to 'Subscriber', one of five values the plugin's settings UI offers), to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database, including administrator password hashes.

引用元:Wordfence

確認と対応の進め方

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

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

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

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

運営元KanriPressのサービス案内

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

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

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