WP Statistics <= 14.16.8 - Unauthenticated Stored Cross-Site Scripting via 'utm_campaign' Parameter
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: partial
Summary
The WP Statistics – Simple, privacy-friendly Google Analytics alternative plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'utm_campaign' parameter in all versions up to, and including, 14.16.8 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. The payload can be planted without authentication via the public /wp-statistics/v2/hit REST endpoint, because the required signature is exposed on the public homepage and a base64-encoded page_uri POST parameter overrides the previously sanitized REQUEST_URI, allowing the malicious utm_campaign value to bypass sanitization and be stored in the database.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
- Record last updated
Affected versions
- veronalabs WP Statistics – Simple, privacy-friendly Google Analytics alternative
through 14.16.8
References 14
plugins.trac.wordpress.org
- browser/wp-statistics/tags/14.16.8/views/components/tables/visitors.php#L94
- browser/wp-statistics/tags/14.16.8/views/components/tables/referred-visitors.php#L79
- browser/wp-statistics/tags/14.16.8/assets/dev/javascript/helper.js#L267
- browser/wp-statistics/tags/14.16.8/includes/api/v2/class-wp-statistics-api-hit.php#L78
- browser/wp-statistics/tags/14.16.8/includes/class-wp-statistics-helper.php#L1462
- browser/wp-statistics/tags/14.16.8/includes/class-wp-statistics-hits.php#L102
- browser/wp-statistics/tags/14.16.7/views/components/tables/visitors.php#L94
- browser/wp-statistics/tags/14.16.7/views/components/tables/referred-visitors.php#L79
- browser/wp-statistics/tags/14.16.7/assets/dev/javascript/helper.js#L267
- browser/wp-statistics/tags/14.16.7/includes/api/v2/class-wp-statistics-api-hit.php#L78
- browser/wp-statistics/tags/14.16.7/includes/class-wp-statistics-helper.php#L1462
- browser/wp-statistics/tags/14.16.7/includes/class-wp-statistics-hits.php#L102