NewStatPress <= 1.4.5 - Unauthenticated Stored Cross-Site Scripting via 'urlrequested' Attribute via Query String
What fixes it
No source in this snapshot names a fixed version.
Description
The NewStatPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 1.4.5 via the 'Last referrers' meta box on the plugin's Overview admin page. This is due to insufficient output escaping of the visitor-supplied query string that the plugin records in its statistics table: the newstatpress_generate_overview_lastreferrers() function concatenates the stored urlrequested value into a single-quoted href attribute after only FILTER_SANITIZE_URL, which does not encode the apostrophe. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a high-privileged user, such as an administrator, accesses the Overview page and hovers the injected link.
Text from CVE List
Affected versions 1
- NewStatPressaffected: all versions through 1.4.5CVE List
References 4
- wordfence.com/threat-intel/vulnerabilities/id/234d79fc-5f00-457d-a693-ad3f6d38447b?source=cveReferencevia CVE List
- plugins.trac.wordpress.org/browser/newstatpress/tags/1.4.5/includes/nsp-overview.php#L320Referencevia CVE List
- plugins.trac.wordpress.org/browser/newstatpress/tags/1.4.5/newstatpress.php#L839Referencevia CVE List
- plugins.trac.wordpress.org/browser/newstatpress/tags/1.4.5/newstatpress.php#L1447Referencevia CVE List