Rearrange Woocommerce Products <= 3.0.7 - Subscriber+ SQL Injection
Strategic Overview
- Status
- Patched in 3.0.8
- Affected Plugin
- Rearrange Products for WooCommerce
- Affected Version
< 3.0.8- CVSS
- 6.5Medium
- Weakness type
- CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
- CVE
CVE-2021-24928
At a glance
CVE-2021-24928 is a medium-severity Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in the Rearrange Products for WooCommerce WordPress plugin, affecting versions < 3.0.8. It carries a CVSS score of 6.5 (reachable over the network; low attack complexity; high integrity impact). The issue is fixed in version 3.0.8; sites on affected versions should update now. Disclosed January 2022, reported by Krzysztof Zając.
Vulnerability Overview
The Rearrange Woocommerce Products WordPress plugin before 3.0.8 does not have proper access controls in the save_all_order AJAX action, nor validation and escaping when inserting user data in SQL statement, leading to an SQL injection, and allowing any authenticated user, such as subscriber, to modify arbitrary post content (for example with an XSS payload), as well as exfiltrate any data by copying it to another post.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user. A successful exploit has high impact on integrity.
CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Reaching this weakness in Rearrange Products for WooCommerce < 3.0.8 takes a caller who can reach the endpoint. SQL injection happens when request data is concatenated into a query instead of being bound as a parameter, letting an attacker change the structure of the statement rather than just its values.
A working injection can read any table the database user can see, which on a WordPress install means user records, password hashes and session or API secrets stored in options. For Rearrange Products for WooCommerce the fix is 3.0.8: builds < 3.0.8 are affected, anything from 3.0.8 onward is not.
Remediation
Update to version 3.0.8, or a newer patched version
How does WordSec protect against this?
The attempt arrives as an ordinary request to Rearrange Products for WooCommerce: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: Rearrange Products for WooCommerce 3.0.8 closes this, and updating the plugin is the step that ends it.
- Firewall
- Alerts
External References
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C