# Advanced Coupons for WooCommerce Coupons <= 4.7.6.1 - Unauthenticated Insecure Direct Object Reference to Coupon Application via 'coupon' Query Parameter

- **ID:** WPSEC-2026-4049
- **Plugin:** Advanced Coupons for WooCommerce – BOGO, Store Credit & WooCommerce Coupons (`advanced-coupons-for-woocommerce-free`), https://wordpress.org/plugins/advanced-coupons-for-woocommerce-free/
- **Affected versions:** from 4.5.6 before 4.7.7
- **Fixed in:** 4.7.7 (Update to 4.7.7 or later.)
- **Severity:** Medium 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-639
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-27)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/advanced-coupons-for-woocommerce-free
- **Fix released:** 2026-11-26
- **Published:** 2026-11-27
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4049/

## Description

The Advanced Coupons for WooCommerce plugin for WordPress is vulnerable to Insecure Direct Object Reference via the apply-coupon-by-query-string feature in all versions up to, and including, 4.7.6.1. This is due to the 'coupon' query parameter being passed directly to the coupon object, which reads a numeric value as a coupon ID, and to a missing check of the coupon's 'disable URL coupon' setting. This makes it possible for unauthenticated attackers to apply published coupons whose codes they do not know to their cart by enumerating coupon IDs, including coupons that are set not to be applied through a URL, and get discounts they are not entitled to. Exploitation requires the 'apply coupon via query string' setting to be enabled.

## References

- https://wpsec.com/vuln/WPSEC-2026-4049/
- https://plugins.svn.wordpress.org/advanced-coupons-for-woocommerce-free/tags/4.7.7/
- https://wordpress.org/plugins/advanced-coupons-for-woocommerce-free/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4049/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
