CVE-2026-92251: افزونه پرداخت امن زرینپال برای ووکامرس (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 ReturnfromZarinPalGateway() handler registered on the woocommerceapiwczpal (?wc-api=wczpal) endpoint. The handler accepts a wcorder 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 getreturnurl($order), whose Location header embeds the order's secret orderkey. 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.
Affected Software
Event History
Frequently Asked Questions
Does exposure depend on an order having been paid through ZarinPal?
No. The affected handler can load arbitrary WooCommerce orders regardless of payment method. The order must be paid for the redirect to expose its secret order key.
What does an attacker need to exploit this issue?
An attacker only needs network access to the affected wc-api endpoint and a wc_order query-string value identifying an order. No authentication, nonce, session, capability, or order-ownership check is required.
What information can be accessed after an order key is obtained?
The harvested key can be used with WooCommerce order-received, order-pay, and download endpoints. Exposed information can include the customer's billing name, street address, phone number, email address, purchased items, and order totals.