3.0.3 Release Note

Sucuri published “Website Hacked Trend Report” and reported that backdoor and malware are the top 2 of infection trends in Q1 2016.

How attackers get websites hacked?

The following chart (sorry but it is based on the data in Apr. 2015) suggests that vulnerabilities in plugins are the top source of WordPress websites being exploited. It also shows that Arbitrary File Upload which may directly cause websites hacked is the 3rd place among all the type of threats.

WordPress Vulnerability Statistics Source: © The WPScan Team

Now, I’m very pleased to announce that IP Geo Block 3.0.3 has an ability to prevent those type of threats!!

Arbitrary File Upload

You can find a bunch of AFU in WPScan Vulnerability Database. Most cases utilized /wp-admin/admin-ajax.php as an entry point of malicious uploading. Some of them could be blocked by “Zero-day Exploit Prevention” but some of them could not in the previous version.

For example, the following table reported in the past indicates that WP-ZEP could not block AFU if a plugin would provid its service for both logged-in user ( emoji ) and not-logged-in user ( emoji ).

Analysis of Attack Vectors

But now, you’re safe against this type of attacks!

New feature: Prevent malicious upload

By default, WordPress accepts the following file types (or extension) so that a logged-in user can upload them on dashboard.

Network Settings

But some plugins or themes that provide uploading functionality may accept different file types from those which WordPress accepts. And sometimes they would fail to verify the file types or loose to verify user’s capability.

So “Verify capability and MIME type” will validate the both MIME type and file extension and also user capability on behalf of those vulnerable plugins and themes.

Now you can find a new option “Prevent malicious upload” in “Validation rule settings” section. It enables to verify the capability (i.e. upload_files) and restrict the MIME types of uploading files.

All MIME Types

If this configuration is too strong for your demand, “Verify only file extension” is your 2nd choice.

After you enable this feature, you may be supprised to find some malicious uploading in the logs within a few days. The following picutre shows that the attackers attempted to upload zip file including malware targeted at vulnerability of Revolution Slider.

Malicious uploading in logs

Note that you need to put FILES into “$_POST keys to be recorded with their values in logs” at “Record settings” section to record the content of PHP environment variable $_FILES like the above picture.


New hook: ip-geo-block-forbidden-upload

Warning: This filter hook was abolished in release 3.0.4 , but is replaced to ip-geo-block-upload-forbidden .

When this plugin detects malicious uploading, the filter hook ip-geo-block-forbidden-upload is applied.

I personally utilize it to make the uploaded files immune emoji from public access and investigate them to study how websites would be exploited emoji .

If you want to use this feature, do it at your own risk!

New feature: “Response code” on front-end

From this release, you can configure “Response code” independently on front-end. This is useful not to violate your affiliate program.

Front-end target settings

Improvement: Enabling/Disabling “DNS reverse lookup”

Before this release, if “UA string and qualification” at “Front-end target settings” includes HOST as follows, then DNS reverse lookup would be fetched. This potentially caused 504 Gateway error because the cost of looking up DNS record would be relatively high.


If you want to inhibit fetching DNS record, you had to change HOST to * as follows:


Now you can just check/uncheck “DNS reverse lookup” to enable/disable it.

DNS reverse Lookup

When it is disabled, then HOST and HOST=... will be converted to *.

Note that *:HOST=yahoo.com or *#HOST=badbot.com for example will be eliminated because those will be turned into *:* or *#* that accepts or blocks all the user agents emoji .