Description
The WooCommerce Multilingual & Multicurrency with WPML plugin for WordPress is vulnerable to SQL Injection in all versions up to, and including, 5.5.7. This is due to insufficient input validation on the currency exchange rate parameter in the save_currency() AJAX handler, which lacks capability checks and allows subscriber-level users to store malicious SQL payloads that are later concatenated directly into ORDER BY clauses without proper sanitization. This makes it possible for authenticated attackers, with Shop Manager-level access and above, to append additional SQL queries to extract sensitive information from the database.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
amirhelzer WPML Multilingual & Multicurrency for WooCommerce
Default version status: unaffected
0 to ≤ 5.5.7affected
References
- https://www.wordfence.com/threat-intel/vulnerabilities/id/b3a4ff32-52a8-4bb0-8bf6-536a89d338e9?source=cve ↗
- https://plugins.trac.wordpress.org/browser/woocommerce-multilingual/trunk/classes/Multicurrency/WpQueryMcPrice/PriceOrderByPostMeta.php#L74 ↗
- https://plugins.trac.wordpress.org/browser/woocommerce-multilingual/tags/5.5.5/classes/Multicurrency/WpQueryMcPrice/PriceOrderByPostMeta.php#L74 ↗
- https://plugins.trac.wordpress.org/browser/woocommerce-multilingual/trunk/inc/currencies/class-wcml-multi-currency-configuration.php#L182 ↗
- https://plugins.trac.wordpress.org/browser/woocommerce-multilingual/tags/5.5.5/inc/currencies/class-wcml-multi-currency-configuration.php#L182 ↗
- https://plugins.trac.wordpress.org/browser/woocommerce-multilingual/trunk/inc/currencies/class-wcml-multi-currency-configuration.php#L136 ↗
- https://plugins.trac.wordpress.org/browser/woocommerce-multilingual/tags/5.5.5/inc/currencies/class-wcml-multi-currency-configuration.php#L136 ↗
- https://plugins.trac.wordpress.org/changeset/3705990/ ↗