Плагин ZarinPal Payment Gateway for WooCommerce для WordPress уязвим для Insecure Direct Object Reference в версиях до и включая 5.1.1 через обработчик Return_from_ZarinPal_Gateway(), зарегистрированный на конечной точке woocommerce_api_wc_zpal` (`?wc-api=wc_zpal. Обработчик принимает параметр wc_order из строки запроса, загружает соответствующий порядок WooCommerce без какой-либо проверки подлинности, nonce, сессии, возможности или собственности, и — когда заказ оплачен — выдает перенаправление 302 на get_return_url($order), чей заголовок Location встраивает секрет заказа order_key. Это позволяет злоумышленникам, не прошедшим проверку подлинности, собирать ключи заказов для произвольных заказов (независимо от способа оплаты), а затем использовать эти ключи против полученных заказов WooCommerce, оплаты заказов и загрузки конечных точек для чтения PII ассоциированного клиента, включая имя счета, адрес улицы, номер телефона, адрес электронной почты, купленные предметы и итоговые данные.
Показать оригинальное описание (EN)
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.
Характеристики атаки
Последствия
Строка CVSS v3.1