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-11682 Overview
CVE-2024-11682 is a Reflected Cross-Site Scripting (XSS) vulnerability in the G Web Pro Store Locator plugin for WordPress. The flaw affects all versions up to and including 2.1. It stems from insufficient input sanitization and output escaping on the q parameter processed by the plugin's frontend handler.
Unauthenticated attackers can craft URLs that inject arbitrary web scripts into the rendered page. Exploitation requires user interaction, typically a victim clicking a malicious link. Successful exploitation executes attacker-controlled JavaScript in the victim's browser session against the vulnerable WordPress site.
Critical Impact
Attackers can hijack authenticated sessions, steal cookies, redirect users, or perform actions on behalf of victims by tricking them into clicking crafted links targeting the q parameter.
Affected Products
- G Web Pro Store Locator plugin for WordPress (all versions ≤ 2.1)
- WordPress sites with the gwebpro-store-locator plugin active
- Any user browsing a site running the vulnerable plugin version
Discovery Timeline
- 2024-12-21 - CVE-2024-11682 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-11682
Vulnerability Analysis
The vulnerability is a Reflected Cross-Site Scripting flaw classified under [CWE-79]. The plugin's frontend script reads the q query parameter from the incoming HTTP request and reflects it back into the HTML response without proper sanitization or output escaping.
Because reflection occurs at render time, injected payloads execute in the context of the vulnerable origin. Attackers can weaponize the flaw against site visitors, including administrators who may be authenticated when they click the crafted link. The reflected payload runs with the privileges of the target's browser session.
The scope-changed impact reflects the ability of injected script to affect resources beyond the vulnerable component itself, such as the WordPress administrative interface.
Root Cause
The vulnerable code path in gwebpro-store-locator-frontend.php around line 452 accepts the q parameter from user input and emits it into the HTML response without escaping. The plugin does not apply WordPress sanitization functions such as sanitize_text_field() on input or esc_html() / esc_attr() on output. See the WordPress Plugin Code Reference and the Wordfence Vulnerability Report for technical detail.
Attack Vector
Exploitation is network-based and requires no authentication. An attacker constructs a URL to the vulnerable store locator endpoint with a JavaScript payload placed in the q parameter. The attacker delivers the link via phishing email, social media, or a malicious referring page. When the victim clicks the link, the plugin reflects the payload and the browser executes it in the site's origin.
The vulnerability is described in prose only; no verified proof-of-concept code is published in the referenced sources.
Detection Methods for CVE-2024-11682
Indicators of Compromise
- HTTP requests to store locator endpoints containing q= parameter values with <script>, javascript:, onerror=, onload=, or URL-encoded equivalents such as %3Cscript%3E
- Access log entries referencing the gwebpro-store-locator plugin path with unusually long or encoded query strings
- Outbound requests from admin browsers to attacker-controlled domains shortly after clicking an inbound link
- Unexpected creation of WordPress administrator accounts or plugin/theme changes following an admin session
Detection Strategies
- Inspect web server access logs for requests targeting the plugin with suspicious q parameter content, including HTML tag characters and event handler attributes
- Deploy a Web Application Firewall (WAF) with rules to identify reflected XSS patterns in query strings
- Monitor Content Security Policy (CSP) violation reports for inline script executions on pages served by the plugin
- Correlate referrer headers from external domains with subsequent administrative actions inside WordPress
Monitoring Recommendations
- Enable and centralize WordPress audit logging for user, plugin, and settings changes
- Alert on WordPress plugin inventory drift, particularly on sites still running gwebpro-store-locator at version 2.1 or earlier
- Review Wordfence or equivalent vulnerability feeds for updated indicators tied to this CVE
How to Mitigate CVE-2024-11682
Immediate Actions Required
- Inventory all WordPress sites and identify installations of the G Web Pro Store Locator plugin at version 2.1 or earlier
- Deactivate and remove the plugin on affected sites until a patched release is confirmed available
- Invalidate active WordPress sessions and rotate administrator credentials if reflected XSS delivery is suspected
- Add WAF rules that block requests containing script tags or event handlers in the q parameter
Patch Information
At the time of the NVD entry, the vulnerability affects all versions up to and including 2.1 of the plugin. Administrators should consult the Wordfence Vulnerability Report and the WordPress plugin repository for a fixed release. If no patched version is available, remove the plugin.
Workarounds
- Uninstall the gwebpro-store-locator plugin where a business-critical need does not exist
- Deploy a WAF signature that rejects reflected XSS payloads targeting the q query parameter
- Enforce a strict Content Security Policy that disallows inline scripts and restricts script sources to trusted origins
- Require administrators to browse the WordPress admin interface from a dedicated browser profile that is not used for arbitrary link clicks
# Example ModSecurity rule to block script payloads in the q parameter
SecRule ARGS:q "@rx (?i)(<script|javascript:|onerror=|onload=|%3Cscript)" \
"id:1004711,phase:2,deny,status:403,\
msg:'Reflected XSS attempt against gwebpro-store-locator q parameter (CVE-2024-11682)'"
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

