Summary
The NewStatPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'QUERY_STRING / REQUEST_URI' parameter in all versions up to, and including, 1.4.5 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. Exploitation requires that an administrator has placed the [NewStatPress type="Top Pages"] shortcode on a publicly viewable page, and that the attacker's crafted URL accumulates enough hits to appear in the top-N ranking.
Risk profile
7.2 · H I G H
CVSS assessment
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
- Attack vector
- N E T W O R K
- Complexity
- L O W
- Privileges
- N O N E
- User interaction
- N O N E
- Scope
- C H A N G E D
- Confidentiality
- L O W
- Integrity
- L O W
- Availability
- N O N E
Weaknesses
-
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CWE-79
Further reading
4
sources
References
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/newstatpress/tags/1.4.5/includes/nsp-core.php#L876
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/newstatpress/tags/1.4.5/newstatpress.php#L1453
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/newstatpress/tags/1.4.5/newstatpress.php#L839
- www.wordfence.com https://www.wordfence.com/threat-intel/vulnerabilities/id/fe3a7196-690b-45bb-a34f-05981f6780f1?source=cve