# Lootly Loyalty & Rewards <= 1.49 - Missing Authorization to Unauthenticated Discount Code Creation via 'discount-codes' REST Endpoint

- **ID:** WPSEC-2026-3398
- **Plugin:** Lootly Loyalty & Rewards (`lootly-for-woocommerce`), https://wordpress.org/plugins/lootly-for-woocommerce/
- **Affected versions:** from 1.13 before 1.49.3
- **Fixed in:** 1.49.3 (Update to 1.49.3 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-862
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-18)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/lootly-for-woocommerce
- **Fix released:** 2026-11-17
- **Published:** 2026-11-18
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3398/

## Description

The Lootly Loyalty & Rewards plugin for WordPress is vulnerable to unauthorized modification of data via the /lootly/discount-codes/ REST endpoint in all versions up to, and including, 1.49, due to a permission callback that always returns true instead of requiring a valid Lootly signature. This makes it possible for unauthenticated attackers to create WooCommerce coupons with a code, amount and discount type of their choice.

## References

- https://wpsec.com/vuln/WPSEC-2026-3398/
- https://plugins.svn.wordpress.org/lootly-for-woocommerce/tags/1.49.3/
- https://wordpress.org/plugins/lootly-for-woocommerce/

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

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.
