Unzer Payments 2.2.1以下 - paymentData.emailパラメータを介した認証不要の認証回避によるアカウント乗っ取り
元情報の公開:2026/11/18 09:40 / 元情報の更新:2026/11/18 22:32(日本時間)
日本語訳
WordPress用プラグイン「Unzer Payments」は、2.2.1以下のすべてのバージョンで、アカウント乗っ取りにつながる認証回避の脆弱性があります。startCheckoutDataWithNormalizedCustomerDataが処理するGoogle Pay Express Checkoutエンドポイント(/?wc-api=google_pay_express)が、攻撃者の制御するpaymentData.email値を受け入れ、createOrGetGuestCustomer()へ渡すことが原因です。この関数はget_user_by('email', ...)で送信されたメールアドレスに対応する既存のWordPressユーザーを特定し、メールアドレスの所有、パスワード、nonce、認証トークン、決済事業者からの支払いの証明を一切検証せずに、そのユーザーIDに対してwp_set_current_user()とwp_set_auth_cookie()を呼び出します。
認証されていない攻撃者が、既存ユーザーの既知のメールアドレスを送信するだけで、管理者を含むそのユーザーとしてログインできます。対象アカウントの有効なwordpress_logged_in_*セッションCookieを受け取り、サイトを完全に乗っ取れます。エンドポイントは、権限チェック、nonce検証、決済事業者の署名検証が一切適用されず、まったく保護されていません。管理者のメールアドレスは、WordPress REST APIのユーザー列挙エンドポイント(/wp-json/wp/v2/users)、投稿者アーカイブページ、Gravatarの照会、サイトの連絡先フッターから見つかることがよくあります。
原文(英語)
Unzer Payments <= 2.2.1 - Unauthenticated Authentication Bypass to Account Takeover via 'paymentData.email' Parameter
The Unzer Payments plugin for WordPress is vulnerable to Authentication Bypass leading to Account Takeover in all versions up to, and including, 2.2.1. The vulnerability exists because the Google Pay Express Checkout endpoint (`/?wc-api=google_pay_express`), handled by `startCheckoutDataWithNormalizedCustomerData`, accepts an attacker-controlled `paymentData.email` value and passes it to `createOrGetGuestCustomer()`, which resolves the submitted email to any existing WordPress user via `get_user_by('email', ...)` and then calls `wp_set_current_user()` and `wp_set_auth_cookie()` for the resolved user ID without verifying ownership of the email address, a password, a nonce, an authentication token, or any proof of payment from the payment provider. This makes it possible for unauthenticated attackers to log in as any existing WordPress user — including administrators — by submitting that user's known email address, receiving valid `wordpress_logged_in_*` session cookies for the targeted account and achieving full site takeover. The endpoint is entirely unprotected with no capability check, nonce validation, or payment-provider signature verification applied, and administrator email addresses are frequently discoverable via the WordPress REST API user enumeration endpoint (`/wp-json/wp/v2/users`), author archive pages, Gravatar lookups, or site contact footers.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
修正版が未確認の製品は、まず提供元の最新情報を確認してください。記事の取得時点より後に修正版が公開されている場合があります。
プラグインの代替を探す場合は、必要な機能と既存データの移行方法を確認してください。削除前にバックアップを確保し、代替製品の動作を検証してください。