WP User Switch <= 1.0.2 - Authenticated (Subscriber+) Authentication Bypass via Cookie

Authentication Bypass Using an Alternate Path or Channel
CVE CVE-2023-2546
CVSS High (8.8)
Publicly Published June 4, 2023
Last Updated January 22, 2024
Researcher István Márton
Description

The WP User Switch plugin for WordPress is vulnerable to authentication bypass in versions up to, and including, 1.0.2. This is due to incorrect authentication checking in the 'wpus_allow_user_to_admin_bar_menu' function with the 'wpus_who_switch' cookie value. This makes it possible for authenticated attackers, with subscriber-level permissions and above, to log in as any existing user on the site, such as an administrator, if they have access to the username.

References

1 affected software package

Software Type Plugin
Software Slug wp-user-switch (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 1.0.2
Patched Version
  • 1.0.3
This record contains material that is subject to copyright

Copyright 2012-2026 Defiant Inc.
License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. License Detail.