8 Jul 2016

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]

8 Jul 2016

Authenticated Persistent Cross-SIte Scripting (XSS) Vulnerability in WooCommerce Products Filter

When using WooCommerce you introduce an additional security risk due to the fact that WooCommerce allows the creation of WordPress accounts by customers by default. That is a security risk because many of the security vulnerabilities in WordPress plugins we are seeing found by others and found by us these days involve something that is only exploitable by logged in users. With that risk, you would hope that developers of plugin that interact with WooCommerce would be careful to avoid that type of issue, but from starting to look over those plugins we have found that isn’t always the case.

In the WooCommerce Products Filter plugin settings are saved through AJAX accessible function woof_save_options(), located in the file /index.php. The file looked this in version 1.14.2: [Read more]