CVE-2021-32789
Arbitrary SQL (SQL injection) possible via the Store API component.
Record summary
CVE-2021-32789 has a selected CVSS score of 7.5 (high); EIP currently links 2 repository PoCs and 1 Nuclei template.
Description
woocommerce-gutenberg-products-block is a feature plugin for WooCommerce Gutenberg Blocks. An SQL injection vulnerability impacts all WooCommerce sites running the WooCommerce Blocks feature plugin between version 2.5.0 and prior to version 2.5.16. Via a carefully crafted URL, an exploit can be executed against the `wc/store/products/collection-data?calculate_attribute_counts[][taxonomy]` endpoint that allows the execution of a read only sql query. There are patches for many versions of this package, starting with version 2.5.16. There are no known workarounds aside from upgrading.
Exploitation context
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
woocommerce_blocksBrowse automattic / woocommerce_blocks | VulnCheck | Version data not supplied | |
woocommerce-gutenberg-products-blockBrowse woocommerce / woocommerce-gutenberg-products-block | CVE List | > 2.5.0, < 2.5.16 | affected |
Proofs of concept
2Repository PoCs
GitHuband0x00/CVE-2021-32789Repository PoCby and0x00Stars: 1Not analyzed2 files
GitHubDonVorrin/CVE-2021-32789Repository PoCby DonVorrinStars: 0Not analyzed3 files
Nuclei templates
1ProjectDiscoveryHIGHWooCommerce Blocks 2.5 to 5.5 - Unauthenticated SQL InjectionCVSS 7.5
woocommerce-gutenberg-products-block is a feature plugin for WooCommerce Gutenberg Blocks. An SQL injection vulnerability impacts all WooCommerce sites running the WooCommerce Blocks feature plugin between version 2.5.0 and prior to version 2.5.16. Via a carefully crafted URL, an exploit can be executed against the `wc/store/products/collection-data?calculate_attribute_counts[][taxonomy]` endpoint that allows the execution of a read only sql query. There are patches for many versions of this package, starting with version 2.5.16. There are no known workarounds aside from upgrading.
Impact
Successful exploitation of this vulnerability can lead to unauthorized access, data leakage, and potential compromise of the affected system.
Remediation
Update WooCommerce Blocks to version 5.6 or later to mitigate the vulnerability.
Source: ProjectDiscovery