While trying to work through a vulnerability claim with a non-working proof of concept that a vulnerability had previously existed in the WordPress plugin Clearfy, we noticed a minor but rather obvious vulnerability in the plugin. That involves a lack of protection against cross-site request forgery (CSRF) when accessing one of it options for cache clearing. An attacker could cause an Administrator to clear the cache without intending it, which shouldn’t be much of an issue, unless it could be combined with another more serious issue.
The plugin has an admin bar item. It includes two cache clearing options. The URL for one of those, “Clear all cache”, looks like this: /wp-admin/plugins.php?wclearfy_cache_delete=1. The URL for the other one of those, “Clear cache (0%)”, looks like this: /wp-admin/plugins.php?wbcr_mac_clear_cache=1&_wpnonce=11522b67fc. The second URL format includes a nonce, which is used to prevent CSRF. [Read more]