MotoPress Appointment Booking 2.4.8以下 - /customers/create RESTエンドポイントの顧客名を介した認証不要の格納型クロスサイトスクリプティング

元情報の公開:2026/11/06 23:08 / 元情報の更新:2026/11/07 11:29(日本時間)

日本語訳

WordPress用プラグイン「MotoPress Appointment Booking Lite」の2.4.8以下のバージョンには、公開の/motopress/appointment/v1/customers/create RESTエンドポイントを介した格納型クロスサイトスクリプティングの脆弱性があります。

このルートはpermission_callback => __return_trueで登録され、ハンドラーのnameパラメーターは、$wpdb->insertで独自のwp_mpa_customersテーブルへ書き込まれる前に無害化されません。また、閲覧者がmpa_edit_customer権限を持たない場合(プラグインが定義するAppointment Employeeロールなど)、管理画面の予約一覧で出力時のエスケープも行われません。これにより、認証されていない攻撃者はページに任意のWebスクリプトを挿入でき、利用者がそのページにアクセスするたびにスクリプトが実行されます。

原文(英語)

MotoPress Appointment Booking <= 2.4.8 - Unauthenticated Stored Cross-Site Scripting via Customer Name via /customers/create REST Endpoint

The MotoPress Appointment Booking Lite plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 2.4.8 via the public '/motopress/appointment/v1/customers/create' REST endpoint. The route is registered with permission_callback => '__return_true' and the handler's 'name' parameter is not sanitized before being written to the custom wp_mpa_customers table via $wpdb->insert, nor is it escaped on output in the admin bookings list when the viewing user lacks the 'mpa_edit_customer' capability (such as the plugin-defined Appointment Employee role). This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

引用元:Wordfence

確認と対応の進め方

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

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

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

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

運営元KanriPressのサービス案内

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

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

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