Registration Form for WooCommerce 1.1.4以下 - 購入手続きの'user_roles'パラメーターにおける認証不要の権限昇格
元情報の公開:2026/11/07 06:45 / 元情報の更新:2026/11/07 20:26(日本時間)
日本語訳
WordPress用プラグイン「Registration Form for WooCommerce」の1.1.4以下のバージョンには、FormHandler::validate_checkout_fields()関数で許可リストの確認が欠けているため、権限昇格の脆弱性があります。My Accountの登録経路であるvalidate_fields()は、送信されたtgwcfb/user-roles値をフォームに設定された許可ロールと照合します。一方、woocommerce_after_checkout_validationにフックされた購入手続きの登録経路validate_checkout_fields()は、許可リストを一切強制せず、生の$_POST['user_roles']値を$this->valid_dataへ保存します。その後、add_user_data()がその値を新規アカウントのロールとしてwoocommerce_new_customer_dataへ挿入します。
これにより、認証されていない攻撃者は、購入手続き中にアカウントを作成する際、user_roles=administratorパラメーターを指定して管理者へと権限を昇格させることができ、サイト全体の乗っ取りにつながります。
原文(英語)
Registration Form for WooCommerce <= 1.1.4 - Unauthenticated Privilege Escalation to 'user_roles' Parameter at Checkout
The Registration Form for WooCommerce plugin for WordPress is vulnerable to privilege escalation due to a missing allow-list check in the FormHandler::validate_checkout_fields() function in versions up to, and including, 1.1.4 The My Account registration path (validate_fields()) validates a submitted 'tgwcfb/user-roles' value against the form's configured allowed roles, but the checkout registration path (validate_checkout_fields(), hooked to woocommerce_after_checkout_validation) stores the raw $_POST['user_roles'] value in $this->valid_data without any allow-list enforcement, and add_user_data() then injects that value into woocommerce_new_customer_data as the new account's role. This makes it possible for unauthenticated attackers to elevate their privileges to Administrator by supplying a user_roles=administrator parameter when creating an account during checkout, resulting in full site takeover.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。