Description
WordPress Plugin Google Analytics Dashboard Plugin for WordPress by MonsterInsights is prone to a cross-site scripting vulnerability because it fails to properly sanitize user-supplied input. An attacker may leverage this issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks. However, if all users have the 'unfiltered_html' capability, or there is only one admin, then there is no issue. WordPress Plugin Google Analytics Dashboard Plugin for WordPress by MonsterInsights version 5.4.4 is vulnerable; prior versions may also be affected.
Remediation
Update to plugin version 5.4.5 or latest
References
https://security.dxw.com/advisories/xss-in-google-analytics-by-yoast-premium-by-privileged-users/
https://wordpress.org/plugins/google-analytics-for-wordpress/changelog/
Related Vulnerabilities
WordPress Plugin Advanced Custom Fields:reCAPTCHA Field Security Bypass (1.1.1)
WordPress Plugin WooCommerce-Store Exporter Multiple Cross-Site Scripting Vulnerabilities (1.7.5)
ownCloud Cross-Site Request Forgery (CSRF) Vulnerability (CVE-2012-2397)
WordPress Plugin WP Easy Poll Multiple Vulnerabilities (1.1.3)
Drupal Permissions, Privileges, and Access Controls Vulnerability (CVE-2014-1476)