Motors 1.4.128以下 - 'stm_dealer_logo_path'パラメーターを介した認証済み(購読者以上)のファイル削除
元情報の公開:2026/11/05 01:08 / 元情報の更新:2026/11/05 13:48(日本時間)
日本語訳
WordPress用プラグイン「Motors – Car Dealership & Classified Listings Plugin」の1.4.128以下のすべてのバージョンには、ファイル削除の脆弱性があります。原因は、personal_options_updateにフックされたstm_save_user_extra_fields()が、送信されたパスと送信者を結び付ける所有権確認なしに、攻撃者が制御するstm_dealer_logo_pathパラメーターをユーザーメタへ直接書き込むことです。stm_payment_statusやstm_lost_password_hashフィールドとは異なり、このフィールドはmanage_optionsまたはedit_users権限の確認で制限されません。
これにより、購読者以上の権限を持つ認証済みの攻撃者は、自分のプロフィールから細工したパスを保存し、投稿者ページの販売店登録フォームでunlink()を起動して、wp-content/uploads内の他の利用者に属する画像ファイルを削除できます。これには他の利用者のアバター、販売店のロゴ、アップロードされたメディアが含まれます。ただし、2つのパス確認(stm_mvl_is_path_within_uploadsとstm_mvl_is_allowed_image_file)は、画像の拡張子を持ち、解決後のパスがuploadsの基準ディレクトリ内にあるファイルへ攻撃範囲を制限します。wp-config.phpやプラグインのPHPファイルなど、そのディレクトリ外のファイルには到達できません。
原文(英語)
Motors <= 1.4.128 - Authenticated (Subscriber+) File Deletion via 'stm_dealer_logo_path' Parameter
The Motors – Car Dealership & Classified Listings Plugin plugin for WordPress is vulnerable to File Deletion in all versions up to, and including, 1.4.128 The vulnerability exists because `stm_save_user_extra_fields()`, hooked to `personal_options_update`, writes the attacker-controlled `stm_dealer_logo_path` parameter directly to user meta without an ownership check binding the submitted path to the submitting user — unlike the `stm_payment_status` and `stm_lost_password_hash` fields, this field is not gated by a `manage_options` or `edit_users` capability check. This makes it possible for authenticated attackers, with Subscriber-level access and above, to delete image files belonging to other users under `wp-content/uploads` — including other users' avatars, dealer logos, and uploaded media — by storing a crafted path via their own profile and then triggering `unlink()` through the become-dealer form on their author page. Note that the two path guards (`stm_mvl_is_path_within_uploads` and `stm_mvl_is_allowed_image_file`) do restrict the attack surface to files with an image extension that resolve within the uploads basedir; files outside that directory, such as `wp-config.php` or plugin PHP files, cannot be reached.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。