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-11370 Overview
CVE-2024-11370 is a Reflected Cross-Site Scripting (XSS) vulnerability in the Subaccounts for WooCommerce plugin for WordPress. The flaw affects all versions up to and including 1.6.0. The plugin uses add_query_arg without appropriate escaping on the URL, allowing injected scripts to execute in the context of a victim's browser. Unauthenticated attackers can craft malicious links that execute arbitrary JavaScript when clicked by an authenticated user. The vulnerability is tracked under CWE-79.
Critical Impact
An unauthenticated attacker can execute arbitrary JavaScript in a victim's browser session, enabling session theft, administrative action hijacking, or redirection to attacker-controlled infrastructure.
Affected Products
- Mediaticus Subaccounts for WooCommerce plugin for WordPress
- All versions up to and including 1.6.0
- WordPress installations with the vulnerable plugin activated
Discovery Timeline
- 2024-11-21 - CVE-2024-11370 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-11370
Vulnerability Analysis
The vulnerability resides in the plugin's administrative interface, specifically in admin/admin.php at line 37 of version 1.5.6. The code constructs URLs using the WordPress add_query_arg() function without first escaping the resulting URL before output. When add_query_arg() is called without arguments, it reuses the current request URI, which attackers can control through crafted query string parameters.
Because the returned URL is rendered into a page attribute without passing through esc_url() or an equivalent escaping routine, injected payloads break out of the intended context and execute as script. Any user who clicks a crafted link while visiting the affected admin page triggers the payload in their browser session.
Root Cause
The root cause is missing output escaping on data derived from user-controlled input. The pattern add_query_arg() returns the current URL with modifications and is widely recognized as a sink that requires explicit escaping. The plugin's omission of esc_url() before echoing the value allowed HTML and JavaScript to be reflected into the page response.
Attack Vector
Exploitation requires user interaction. An attacker crafts a URL to the vulnerable WordPress admin page with a malicious payload embedded in the query string. The attacker then tricks an authenticated administrator or subaccount user into clicking the link through phishing, social engineering, or an embedded link on another site.
Once the page loads, the browser executes the injected script in the context of the WordPress site's origin. This grants the attacker access to session cookies, the ability to perform authenticated actions, and the capacity to pivot further into the WooCommerce environment. Technical details are documented in the Wordfence Vulnerability Report and the WordPress Changeset #3193376 patch.
Detection Methods for CVE-2024-11370
Indicators of Compromise
- Web server access logs containing requests to WordPress admin pages with unusual query string parameters including <script>, javascript:, onerror=, or URL-encoded equivalents such as %3Cscript%3E.
- Referrer headers pointing to external domains for admin-area page loads associated with the Subaccounts for WooCommerce plugin.
- Unexpected outbound requests from administrator browsers to attacker-controlled domains shortly after admin page visits.
Detection Strategies
- Inspect WordPress and web server logs for query strings targeting plugin admin endpoints that contain HTML or JavaScript metacharacters.
- Deploy a web application firewall rule that blocks reflected XSS payload patterns against WordPress admin URLs.
- Monitor browser-side telemetry for script execution originating from reflected URL parameters on administrative pages.
Monitoring Recommendations
- Enable Content Security Policy (CSP) headers with reporting to surface inline script execution attempts in WordPress administrative contexts.
- Audit the installed version of the Subaccounts for WooCommerce plugin across all WordPress sites and flag any at version 1.6.0 or earlier.
- Alert on new or modified administrative accounts created shortly after admin sessions involving the affected plugin pages.
How to Mitigate CVE-2024-11370
Immediate Actions Required
- Update the Subaccounts for WooCommerce plugin to a version later than 1.6.0 that incorporates the fix from WordPress Changeset #3193376.
- If an update is not immediately available, deactivate and remove the plugin from affected WordPress installations.
- Rotate administrator credentials and invalidate active WordPress sessions if exploitation is suspected.
Patch Information
The vendor committed a fix in WordPress Changeset #3193376 addressing the unescaped output of add_query_arg() in admin/admin.php. Site administrators should apply the patched release through the WordPress plugin updater or by replacing the plugin files manually. Review the WordPress Plugin Admin File to confirm the vulnerable code path has been remediated.
Workarounds
- Deploy a web application firewall rule to block requests to WordPress admin paths containing script tags or JavaScript event handlers in query parameters.
- Restrict access to the WordPress admin interface by IP allowlisting or by placing it behind a VPN until the patch is applied.
- Train administrators to avoid clicking unsolicited links that direct to the WordPress admin console, particularly those arriving via email or external sites.
# Example ModSecurity rule to block reflected XSS patterns on wp-admin
SecRule REQUEST_URI "@beginsWith /wp-admin/" \
"chain,phase:2,deny,status:403,id:1024110,msg:'Blocked potential XSS on wp-admin'"
SecRule ARGS "@rx (?i)(<script|javascript:|onerror=|onload=)" "t:urlDecodeUni,t:lowercase"
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

