Lucene search
K

WordPress IP2Location Country Blocker 2.26.7 Cross Site Scripting

🗓️ 04 Feb 2022 00:00:00Reported by Ahmet Serkan AriType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 258 Views

WordPress IP2Location Country Blocker 2.26.7 Stored Cross Site Scriptin

Code
`# Exploit Title: WordPress Plugin IP2Location Country Blocker 2.26.7 - Stored Cross Site Scripting (XSS) (Authenticated)  
# Date: 02-02-2022  
# Exploit Author: Ahmet Serkan Ari  
# Software Link: https://wordpress.org/plugins/ip2location-country-blocker/  
# Version: 2.26.7  
# Tested on: Linux  
# CVE: N/A  
# Thanks: Ceylan Bozogullarindan  
  
  
# Description:  
IP2Location Country Blocker is a plugin enables user to block unwanted traffic from accesing Wordpress frontend (blog pages) or backend (admin area) by countries or proxy servers. It helps to reduce spam and unwanted sign ups easily by preventing unwanted visitors from browsing a particular page or entire website.  
An authenticated user is able to inject arbitrary Javascript or HTML code to the "Frontend Settings" interface available in settings page of the plugin (Country Blocker), due to incorrect sanitization of user-supplied data and achieve a Stored Cross-Site Scripting attack against the administrators or the other authenticated users. The plugin versions prior to 2.26.7 are affected by this vulnerability.  
  
  
The details of the discovery are given below.  
  
# Steps To Reproduce:  
1. Install and activate the IP2Location Country Blocker plugin.  
2. Visit the "Frontend Settings" interface available in settings page of the plugin that is named "Country Blocker".  
3. Check the "Enable Frontend Blocking" option.  
4. Choose the "URL" option for the "Display page when visitor is blocked" setting.  
5. Type the payload given below to the "URL" input where is in the "Other Settings" area.  
  
http://country-blocker-testing.com/test#"'><script>alert(document.domain)</script>  
  
6. Click the "Save Changes" button.  
7. The XSS will be triggered on the settings page when every visit of an authenticated user.  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation