Atomic Edge analysis of CVE-2024-13362 (metadata-based): This vulnerability is a reflected DOM-based cross-site scripting (XSS) flaw in the Freemius SDK library, version 2.10.1 and earlier, which is bundled with many WordPress plugins and themes including the advanced-scrollbar plugin (vulnerable version 1.1.3). The attack requires user interaction (clicking a link) and has a CVSS score of 6.1 (Medium). The flaw resides in how the url parameter is processed client-side, allowing injection of arbitrary JavaScript into a page’s DOM without proper sanitization or escaping.
The root cause, inferred from the CWE (79) and vulnerability description, is insufficient input sanitization and output escaping for the url parameter within a JavaScript handler (likely an AJAX callback or a Freemius SDK initialization script). Although no code diff is available, the DOM-based nature suggests the vulnerable code reads the url parameter from the URL (e.g., via window.location.search or GET parameters) and writes it directly into the page’s DOM using innerHTML or similar methods, without applying security functions like encodeURIComponent or escaping HTML entities. Atomic Edge analysis confirms this pattern is consistent with many Freemius SDK integrations that handle URL-based configuration or redirect parameters.
Exploitation is straightforward: an attacker crafts a malicious URL containing an XSS payload in the url parameter, such as ?url=javascript:alert(1) or a data URI with encoded script. The victim must click the link while authenticated to the WordPress site (or even unauthenticated, since the SDK loads on public pages). The vulnerable script then decodes the parameter and injects it into the DOM, executing the attacker’s script in the victim’s browser session. The specific endpoint is likely a Freemius SDK script loaded on the frontend, often via a hook like wp_enqueue_script on all pages, meaning any page can serve as the attack vector.
Remediation requires the plugin or theme developer to implement proper input validation and output escaping for the url parameter at the server side, or within the JavaScript code, before the value reaches the DOM. The fix should use functions like wp_kses, esc_url_raw, or esc_js for output, and apply attribute encoding when injecting user-controlled data. The developer patched this in Freemius SDK version 2.10.2 (and the plugin advanced-scrollbar 1.1.10) by sanitizing the url parameter and escaping it appropriately.
The impact is limited to reflected XSS, meaning attackers can execute arbitrary JavaScript in the context of the victim’s browser, but cannot persist across sessions without additional vulnerabilities. This allows attacks like session hijacking, defacement, or phishing. Since unauthenticated attackers can exploit it, the risk is significant for sites with high traffic.







