CVE-2026-6456: CWE-287 Improper Authentication in beycanpress Account Switcher
The Account Switcher plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 1.0.2. This is due to the `rememberLogin` REST API endpoint using a loose comparison (`!=` instead of `!==`) for secret validation at `app/RestAPI.php:111`, combined with no validation that the secret is non-empty. When a target user has never used the "Remember me" feature, their `asSecret` user meta does not exist, causing `get_user_meta()` to return an empty string. An attacker can send an empty `secret` parameter, which passes the comparison (`'' != ''` is `false`), and the endpoint then calls `wp_set_auth_cookie()` for the target user. Additionally, all REST routes use `permission_callback => '__return_true'` with no capability checks. This makes it possible for authenticated attackers, with Subscriber-level access and above, to switch to any user account including Administrator, ultimately granting themselves full administrative privileges.
AI Analysis
Technical Summary
CVE-2026-6456 is an improper authentication vulnerability (CWE-287) in the beycanpress Account Switcher WordPress plugin. The issue is due to the `rememberLogin` REST API endpoint using a loose comparison (`!=` instead of `!==`) for validating a secret token, combined with no check that the secret is non-empty. When a user has never used the "Remember me" feature, their secret is empty, allowing an attacker to bypass validation by sending an empty secret parameter. Additionally, all REST routes in the plugin use `permission_callback => '__return_true'` without capability checks, enabling any authenticated user with Subscriber or higher privileges to switch to any account, including administrators, effectively escalating their privileges.
Potential Impact
An attacker with authenticated access at Subscriber level or above can exploit this vulnerability to impersonate any user, including administrators. This results in full administrative control over the WordPress site, allowing complete compromise of confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Patch status is not yet confirmed — no official fix or patch is currently available from the vendor. Until a patch is released, it is recommended to disable or remove the Account Switcher plugin to prevent exploitation. Monitor the vendor advisory for updates and apply any official fixes promptly once available.
CVE-2026-6456: CWE-287 Improper Authentication in beycanpress Account Switcher
Description
The Account Switcher plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 1.0.2. This is due to the `rememberLogin` REST API endpoint using a loose comparison (`!=` instead of `!==`) for secret validation at `app/RestAPI.php:111`, combined with no validation that the secret is non-empty. When a target user has never used the "Remember me" feature, their `asSecret` user meta does not exist, causing `get_user_meta()` to return an empty string. An attacker can send an empty `secret` parameter, which passes the comparison (`'' != ''` is `false`), and the endpoint then calls `wp_set_auth_cookie()` for the target user. Additionally, all REST routes use `permission_callback => '__return_true'` with no capability checks. This makes it possible for authenticated attackers, with Subscriber-level access and above, to switch to any user account including Administrator, ultimately granting themselves full administrative privileges.
CVSS v3.1
Score 8.8high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-6456 is an improper authentication vulnerability (CWE-287) in the beycanpress Account Switcher WordPress plugin. The issue is due to the `rememberLogin` REST API endpoint using a loose comparison (`!=` instead of `!==`) for validating a secret token, combined with no check that the secret is non-empty. When a user has never used the "Remember me" feature, their secret is empty, allowing an attacker to bypass validation by sending an empty secret parameter. Additionally, all REST routes in the plugin use `permission_callback => '__return_true'` without capability checks, enabling any authenticated user with Subscriber or higher privileges to switch to any account, including administrators, effectively escalating their privileges.
Potential Impact
An attacker with authenticated access at Subscriber level or above can exploit this vulnerability to impersonate any user, including administrators. This results in full administrative control over the WordPress site, allowing complete compromise of confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Patch status is not yet confirmed — no official fix or patch is currently available from the vendor. Until a patch is released, it is recommended to disable or remove the Account Switcher plugin to prevent exploitation. Monitor the vendor advisory for updates and apply any official fixes promptly once available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-04-16T20:55:00.814Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a0d1a63ba1db473621f7e09
Added to database: 05/20/2026, 02:20:19 UTC
Last enriched: 05/20/2026, 02:33:52 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 61
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.