افزونه پرداخت امن زرینپال برای ووکامرس (ZarinPal for WooCommerce) 5.1.1以下 - wc_orderパラメータの不適切な直接オブジェクト参照による認証不要の機密情報漏えい
元情報の公開:2026/11/25 09:00 / 元情報の更新:2026/11/27 00:47(日本時間)
日本語訳
WordPress用プラグイン「ZarinPal Payment Gateway for WooCommerce」は、5.1.1以下のバージョンで、woocommerce_api_wc_zpal(?wc-api=wc_zpal)エンドポイントに登録されたReturn_from_ZarinPal_Gateway()ハンドラーを介した、不適切な直接オブジェクト参照の脆弱性があります。
ハンドラーはクエリ文字列のwc_orderパラメータを受け取り、認証、nonce、セッション、権限、所有者のいずれも確認せずに対応するWooCommerce注文を読み込みます。注文が支払い済みの場合、get_return_url($order)へ302リダイレクトを返し、そのLocationヘッダーに注文の秘密のorder_keyが含まれます。
認証されていない攻撃者が、支払い方法に関係なく任意の注文の注文キーを収集できます。さらに、そのキーをWooCommerceのorder-received、order-pay、ダウンロードの各エンドポイントで使用し、関連する顧客の個人情報を読み取れます。対象には、請求先の氏名、住所、電話番号、メールアドレス、購入商品、合計金額が含まれます。
原文(英語)
افزونه پرداخت امن زرینپال برای ووکامرس (ZarinPal for WooCommerce) <= 5.1.1 - Insecure Direct Object Reference to Unauthenticated Sensitive Information Exposure via 'wc_order' Parameter
The ZarinPal Payment Gateway for WooCommerce plugin for WordPress is vulnerable to Insecure Direct Object Reference in versions up to, and including, 5.1.1 via the `Return_from_ZarinPal_Gateway()` handler registered on the `woocommerce_api_wc_zpal` (`?wc-api=wc_zpal`) endpoint. The handler accepts a `wc_order` parameter from the query string, loads the corresponding WooCommerce order without any authentication, nonce, session, capability, or ownership check, and — when the order is paid — issues a 302 redirect to `get_return_url($order)`, whose `Location` header embeds the order's secret `order_key`. This makes it possible for unauthenticated attackers to harvest order keys for arbitrary orders (regardless of payment method) and then use those keys against the WooCommerce order-received, order-pay and download endpoints to read the associated customer's PII, including billing name, street address, phone number, email, purchased items, and totals.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。