WordPress Account Switcher Plugin Privilege Escalation Vulnerability

Vulnerability

A privilege escalation vulnerability has been identified in the Account Switcher plugin for WordPress, affecting all versions through 1.0.2. The issue arises in the 'rememberLogin' REST API endpoint, which improperly validates secrets by using a loose comparison. This flaw allows authenticated attackers with Subscriber-level access or higher to bypass authentication and gain administrative privileges by exploiting the endpoint's lack of proper validation and capability checks.

Impact

Exploitation of this vulnerability allows authenticated users with Subscriber-level access and above to switch to any user account, including those with Administrator privileges, effectively granting themselves full administrative rights.

Reproduction

To reproduce this vulnerability, an authenticated user with Subscriber-level access or higher can send a request to the 'rememberLogin' REST API endpoint with an empty 'secret' parameter. This request will bypass the secret validation and trigger the endpoint to call 'wp_set_auth_cookie()' for the targeted user, thereby switching accounts and potentially gaining administrative privileges.

Remediation

No known patch is available for this vulnerability. It is recommended to uninstall the affected plugin and find a replacement.

Added: May 20, 2026, 2:38 AM
Updated: May 20, 2026, 2:38 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.0
exploitability
5.8
remediation
0.0
relevance
8.6
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.