Description
WordPress Plugin Admin Bar User Switching 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. WordPress Plugin Admin Bar User Switching version 1.0.4 is vulnerable; prior versions may also be affected.
Remediation
Update to plugin version 1.0.5 or latest
References
https://make.wordpress.org/plugins/2015/04/20/fixing-add_query_arg-and-remove_query_arg-usage/
https://wordpress.org/plugins/admin-bar-user-switching/changelog/
Related Vulnerabilities
Drupal Core 5.x SQL Injection (5.0 - 5.3)
WordPress Plugin Garee's Flickr Feed Multiple Cross-Site Scripting Vulnerabilities (0.8)
WordPress Plugin Relevanssi-A Better Search 'Seach Query' Field HTML Injection (2.7.2)
WordPress Plugin WooCommerce Social Login PHP Object Injection (2.6.2)
ownCloud Improper Control of Generation of Code ('Code Injection') Vulnerability (CVE-2014-2051)