CVE-2026-92251

افزونه پرداخت امن زرین‌پال برای ووکامرس (ZarinPal for WooCommerce) <= 5.1.1 - Insecure Direct Object Reference to Unauthenticated Sensitive Information Exposure via 'wc_order' Parameter

2026-11-25 00:00
Kuba

Strategic Overview

Status
Patched in 5.1.2
Affected Version
<= 5.1.1
CVSS
7.5High
Weakness type
CWE-639 · Authorization Bypass Through User-Controlled Key
CVE
CVE-2026-92251
View all افزونه پرداخت امن زرین‌پال برای ووکامرس (ZarinPal for WooCommerce) vulnerabilities

At a glance

CVE-2026-92251 is a high-severity Authorization Bypass Through User-Controlled Key vulnerability in the افزونه پرداخت امن زرین‌پال برای ووکامرس (ZarinPal for WooCommerce) WordPress plugin, affecting versions <= 5.1.1. It carries a CVSS score of 7.5 (reachable over the network; low attack complexity; high confidentiality impact). Exploitation requires no authentication. The issue is fixed in version 5.1.2; sites on affected versions should update now. Disclosed November 2026, reported by Kuba.

Vulnerability Overview

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.

Technical Analysis

The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no privileges on the target site, and no interaction from a victim user. A successful exploit has high impact on confidentiality.

CWE-639: Authorization Bypass Through User-Controlled Key

افزونه پرداخت امن زرین‌پال برای ووکامرس (ZarinPal for WooCommerce) <= 5.1.1 carries this weakness at Return_from_ZarinPal_Gateway(), and reaching it takes no account at all. Authorization bypass through a user-controlled key, often called insecure direct object reference, means the application looks up a record by an identifier from the request without checking that the caller owns it.

Changing a number in the request is enough to read or modify other users' records, which on commerce and membership sites means customer data. For افزونه پرداخت امن زرین‌پال برای ووکامرس (ZarinPal for WooCommerce) the fix is 5.1.2: builds <= 5.1.1 are affected, anything from 5.1.2 onward is not.

Remediation

Update to version 5.1.2, or a newer patched version

How does WordSec protect against this?

This one needs no account at all, which puts it outside what login hardening can reach; WordSec's login security narrows the account-level paths around it, and the firewall is what inspects the request itself. None of that substitutes for the fix: افزونه پرداخت امن زرین‌پال برای ووکامرس (ZarinPal for WooCommerce) 5.1.2 closes this, and updating the plugin is the step that ends it.

  • Login Security
  • Alerts

External References

Related records

Other vulnerabilities in افزونه پرداخت امن زرین‌پال برای ووکامرس (ZarinPal for WooCommerce)

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C