CVE-2022-1563
WordPress vulnerability analysis and mitigation

Overview

The WPGraphQL WooCommerce WordPress plugin before version 0.12.4 contains a security vulnerability identified as CVE-2022-1563. The vulnerability allows unauthenticated attackers to enumerate a shop's coupon codes and values via GraphQL. This vulnerability was discovered and reported in 2022 (WPScan, NVD).

Technical details

The vulnerability exists because the plugin only prevents users from leaking coupons using the 'coupons' aggregate field, but not the regular 'coupon' field. An unauthenticated attacker can make GraphQL calls to retrieve coupon codes by using the coupon ID format base64(shop_coupon:x), where x is a 2-3 digit integer that can be easily enumerated. The vulnerability has been assigned a CVSS v3.1 base score of 5.3 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N (WPScan).

Impact

The vulnerability allows unauthorized users to discover and enumerate valid coupon codes from the WooCommerce store. This could lead to unauthorized use of discount codes, potentially causing financial impact to the store owner (WPScan).

Mitigation and workarounds

The vulnerability has been fixed in version 0.12.4 of the WPGraphQL WooCommerce plugin. Store owners are advised to update to this version or later to protect against unauthorized coupon code enumeration (WPScan).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management