Description
The SlimStat Analytics – Real-Time Stats, Heatmaps & Ecommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'HTTP_USER_AGENT' parameter in all versions up to, and including, 6.1.2 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This requires the non-default 'Show user agent' (slimstat_options[show_complete_user_agent_tooltip]) setting to be enabled, which causes the raw stored User-Agent value to be used as the tooltip title instead of a sanitized browser name.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
- Attack vector
- Network (from the internet)
- Attack complexity
- High
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Affects other components
- Confidentiality
- Low impact
- Integrity
- Low impact
- Availability
- None
Weakness type (CWE)
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
- www.wordfence.com/threat-intel/vulnerabilities/id/31216602-f5dd-4a43-83ad-4c633a40ca3f?sou
- plugins.trac.wordpress.org/browser/wp-slimstat/tags/6.0.0/admin/view/right-now.php#L130
- plugins.trac.wordpress.org/browser/wp-slimstat/tags/6.0.0/admin/assets/js/admin.js#L1607
- plugins.trac.wordpress.org/browser/wp-slimstat/tags/6.0.0/src/Services/Browscap.php#L299
- plugins.trac.wordpress.org/browser/wp-slimstat/tags/6.0.0/src/Tracker/Storage.php#L27
- plugins.trac.wordpress.org/browser/wp-slimstat/tags/6.0.0/admin/assets/js/admin.js#L2615
- github.com/wp-slimstat/wp-slimstat/commit/991cc758d1e38fcf7715e845ed15e2b92c4b17ee
- plugins.trac.wordpress.org/changeset?reponame=&new=3816272%40wp-slimstat%2Ftags%2F6.1.3&ol
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.