Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-9652 Overview
CVE-2024-9652 is a Reflected Cross-Site Scripting (XSS) vulnerability in the Locatoraid Store Locator plugin for WordPress. The flaw affects all versions up to and including 3.9.47. The root cause is insufficient input sanitization and output escaping of $_POST keys processed by the plugin. Unauthenticated attackers can inject arbitrary web scripts into pages, which execute when a victim is tricked into clicking a crafted link. The weakness is classified under CWE-79.
Critical Impact
Unauthenticated attackers can execute arbitrary JavaScript in a victim's browser session, enabling session theft, credential harvesting, and malicious redirects on affected WordPress sites.
Affected Products
- WordPress Locatoraid Store Locator plugin, all versions through 3.9.47
- WordPress sites with the plugin installed and active
- Any administrator or visitor browser session interacting with the vulnerable endpoint
Discovery Timeline
- 2024-10-16 - CVE-2024-9652 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in the NVD database
Technical Details for CVE-2024-9652
Vulnerability Analysis
The plugin's input handling module iterates through $_POST keys and reflects them back into rendered output without proper sanitization or escaping. Because keys (not just values) are reflected, standard filtering focused on parameter values misses the injection surface. An attacker crafts a form submission where the parameter name itself contains JavaScript payloads. When the server renders the response, the injected key is written into the HTML context and executes in the victim's browser.
The attack requires user interaction, typically clicking a prepared link or submitting an attacker-controlled form via auto-POST. Successful exploitation runs in the origin of the vulnerable WordPress site, giving the attacker access to cookies, local storage, and the Document Object Model (DOM).
Root Cause
The plugin reads $_POST array keys and writes them into HTML output without applying WordPress sanitization helpers such as sanitize_text_field() or output-encoding helpers such as esc_html() and esc_attr(). The vulnerable code path is referenced in the plugin's input library at happ2/modules/input/lib.php near line 705. See the WordPress Locatoraid source code for the pre-patch implementation.
Attack Vector
Exploitation is network-based and unauthenticated. An attacker hosts a page that auto-submits a POST request to the vulnerable Locatoraid endpoint with a crafted parameter name containing a script payload. When a logged-in administrator or site visitor loads the attacker page, their browser issues the POST and renders the reflected script in the WordPress origin. The script then executes with the victim's privileges on the affected site.
No verified public exploit code is available. See the Wordfence vulnerability analysis for additional technical context.
Detection Methods for CVE-2024-9652
Indicators of Compromise
- POST requests to Locatoraid endpoints containing parameter names with <script, onerror=, onload=, or encoded script fragments.
- Access log entries showing unusual Referer headers pointing to external attacker-controlled pages immediately before a POST to the plugin.
- Unexpected administrator account creation, password changes, or plugin installs following visits to Locatoraid URLs.
Detection Strategies
- Review the Locatoraid plugin version with wp plugin list and flag any installation at or below 3.9.47.
- Inspect web server access logs for POST requests to Locatoraid handlers whose body or query string parameter names contain HTML or JavaScript syntax.
- Deploy Web Application Firewall (WAF) rules that inspect POST parameter names, not only values, for script-injection patterns.
Monitoring Recommendations
- Alert on WordPress audit log events showing privilege changes, new administrator accounts, or theme and plugin edits originating from administrator sessions that recently visited untrusted external pages.
- Monitor Content Security Policy (CSP) violation reports for inline-script executions on Locatoraid pages.
- Correlate browser telemetry and endpoint identifications of suspicious script execution originating from the WordPress site origin.
How to Mitigate CVE-2024-9652
Immediate Actions Required
- Update the Locatoraid Store Locator plugin to a version above 3.9.47 that includes the vendor fix.
- If no update is available in your environment, deactivate and remove the plugin until a patched release is confirmed.
- Force password resets for all WordPress administrator accounts that may have interacted with the vulnerable site during the exposure window.
Patch Information
The vendor committed a fix to the plugin repository. Review the WordPress Locatoraid changeset for the applied code changes. Install the latest version from the WordPress plugin directory to apply the patch.
Workarounds
- Place the WordPress site behind a WAF with rules that block POST requests containing script-like characters in parameter names.
- Enforce a strict Content Security Policy that disables inline scripts and restricts script sources to trusted origins.
- Restrict access to Locatoraid administrative pages via IP allow-listing or HTTP authentication at the web server tier.
# Example WP-CLI commands to inventory and update the plugin
wp plugin list --name=locatoraid --fields=name,status,version
wp plugin update locatoraid
wp plugin deactivate locatoraid # fallback if no patched version is available
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

