RULE(RULE ID:333880)

Rule General Information
Release Date: 2021-08-17
Rule Name: WordPress WooCommerce Blocks SQL Injection Vulnerability (CVE-2021-32789)
Severity:
CVE ID:
Rule Protection Details
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.
Impact: An attacker can inject arbitrary sql commands to view or change the database of the target by exploiting the vulnerability successfully.
Affected OS: Windows, Others
Reference: https://github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp/pull/1
https://github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4-w6wv-8wrp
https://hackerone.com/reports/1260787
https://woocommerce.com/posts/critical-vulnerability-detected-july-2021/
Solutions
The vendors have released upgrade patches to fix vulnerabilities, please visit:
https://github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4-w6wv-8wrp