Razorpay for WooCommerce <= 4.8.9 - Unauthenticated Gift Card Double Spend via Magic Checkout

Medium 5.3 CWE-367Fixed in 4.8.10
ID
WPSEC-2026-4013
Plugin
Razorpay for WooCommerce (woo-razorpay)
Affected
from 4.4.0 before 4.8.10
Remediation
Update to 4.8.10 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness
CWE-367
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-26
Attack surface
Razorpay for WooCommerce on WPSec AttackSurface
Fix released
Published

Description

The Razorpay for WooCommerce plugin for WordPress is vulnerable to a gift card double spend in Magic Checkout (1cc) orders in all versions up to, and including, 4.8.9. The cause is that a gift card's balance is checked only when the card is applied, and is not checked again after payment. The post-payment check in handlePromotions() is written so that it practically never fails, so the card is debited, even below zero, and the order is completed. In addition, an exception during the order update before promotions are handled still leads to the order being completed with no gift card debit. This makes it possible for unauthenticated attackers, such as guest shoppers holding a gift card, to apply the same balance to several Magic Checkout orders and have all of them completed, getting goods worth more than the card's value. Exploitation requires Magic Checkout with a supported gift card plugin (YITH WooCommerce Gift Cards or PW WooCommerce Gift Cards).

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0