Woocommerce Custom Product Addons Pro Remote Code Execution Vulnerability
Vulnerability
A remote code execution vulnerability exists in the Woocommerce Custom Product Addons Pro plugin for WordPress, affecting all versions prior to 5.4.1. The issue arises in the process_custom_formula() function within includes/process/price.php, where user-submitted values are inadequately sanitized before being evaluated by PHP's eval() function. Although the sanitize_values() method removes HTML tags, it fails to escape single quotes or block PHP code injection. This vulnerability allows unauthenticated attackers to execute arbitrary code on the server by sending a manipulated value to a WCPA text field that uses a custom pricing formula.
Impact
Exploitation of this vulnerability allows for unauthenticated remote code execution on the server.
Remediation
Users are advised to update the Woocommerce Custom Product Addons Pro plugin to version 5.4.2 or later.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
