Arbitrary File Upload Vulnerability in WooCommerce Products Filter
The importance of the security of a website obviously varies widely, one type of website where security seems to be fairly important would be with eCommerce websites. When it comes to WordPress based eCommerce, one of the popular solutions is WooCommerce, (which we use on this website). WooCommerce introduces additional security risk, since by default it allows customers to create WordPress accounts and many vulnerabilities being found by us an others these days are only exploitable by someone logged into WordPress, for which a hacker would have hard time doing on many other WordPress websites. That issue lead us to do a quick check over some plugins that work with WooCommerce, through that we found a vulnerability that would allow anyone logged in to WordPress to change product prices and another in the plugin WooCommerce Products Filter that would allow anyone logged in to insert malicious JavaScript on to the website.
We then did a check over a larger group of plugins that are tagged woocommerce on the wordpress.org Plugin Directory for code patterns that could indicate a vulnerability exists in the plugin. In doing that we found an arbitrary file upload vulnerability in WooCommerce Products Filter. With that type of vulnerability a hacker could upload malicious code to the website and then they could basically anything they want with the website. That type of vulnerability is probably the most likely to be exploited, so finding one in a plugin with 10,000+ active installs (according to wordpress.org) was concerning. But it was better to catch that now then to catch it after a hacker discovered it and started exploiting it, as we have been repeatedly doing over the last couple of months. [Read more]