WooCommerce Square
WooCommerce Square <= 5.1.1 - Unauthenticated Insecure Direct Object Reference to Sensitive Information Exposure in get_token_by_id
The WooCommerce Square plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 5.1.1 via the get_token_by_id function due to missing validation on a user controlled key. This makes it possible for unauthenticated attackers to expose arbitrary Square "ccof" (credit card on file) values and leverage this value to potentially make fraudulent charges on the target site.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4.2.0, < 4.2.3
- >= 4.3.0, < 4.3.2
- >= 4.4.0, < 4.4.2
- >= 4.5.0, < 4.5.2
- >= 4.6.0, < 4.6.4
- >= 4.7.0, < 4.7.4
- >= 4.8.0, < 4.8.8
- >= 4.9.0, < 4.9.9
- >= 5.0.0, < 5.0.1
- >= 5.1.0, < 5.1.2
Fixed in 4.2.3, 4.3.2, 4.4.2, 4.5.2, 4.6.4, 4.7.4, 4.8.8, 4.9.9, 5.0.1, 5.1.2
Mitigation
Upgrade WooCommerce Square to 4.2.3 or 4.3.2 or 4.4.2 or 4.5.2 or 4.6.4 or 4.7.4 or 4.8.8 or 4.9.9 or 5.0.1 or 5.1.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.