CVE-2026-5617: CWE-639 Authorization Bypass Through User-Controlled Key in royalnavneet Login as User – Switch User & WooCommerce Login as Customer
The Login as User plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 1.0.3. This is due to the handle_return_to_admin() function trusting a client-controlled cookie (oclaup_original_admin) to determine which user to authenticate as, without any server-side verification that the cookie value was legitimately set during an admin-initiated user switch. This makes it possible for authenticated attackers, with Subscriber-level access and above, to escalate their privileges to administrator by setting the oclaup_original_admin cookie to an administrator's user ID and triggering the "Return to Admin" functionality.
AI Analysis
Technical Summary
The Login as User plugin for WordPress contains a privilege escalation vulnerability (CVE-2026-5617) due to improper authorization checks in the handle_return_to_admin() function. This function relies on a client-controlled cookie (oclaup_original_admin) to determine the user context for authentication without server-side validation that the cookie was legitimately set during an admin-initiated user switch. Consequently, an authenticated attacker with Subscriber-level or higher privileges can set this cookie to an administrator's user ID and escalate their privileges to administrator by using the 'Return to Admin' functionality. The vulnerability affects all versions up to and including 1.0.3. No patch or official remediation has been disclosed as of the published date.
Potential Impact
An attacker with authenticated access at Subscriber level or above can exploit this vulnerability to escalate privileges to administrator. This results in full control over the affected WordPress site, including the ability to modify content, install plugins, change configurations, and potentially compromise the entire site. The CVSS score of 8.8 reflects high impact on confidentiality, integrity, and availability of the system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict access to trusted users only and consider disabling or removing the vulnerable plugin to prevent exploitation.
CVE-2026-5617: CWE-639 Authorization Bypass Through User-Controlled Key in royalnavneet Login as User – Switch User & WooCommerce Login as Customer
Description
The Login as User plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 1.0.3. This is due to the handle_return_to_admin() function trusting a client-controlled cookie (oclaup_original_admin) to determine which user to authenticate as, without any server-side verification that the cookie value was legitimately set during an admin-initiated user switch. This makes it possible for authenticated attackers, with Subscriber-level access and above, to escalate their privileges to administrator by setting the oclaup_original_admin cookie to an administrator's user ID and triggering the "Return to Admin" functionality.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Login as User plugin for WordPress contains a privilege escalation vulnerability (CVE-2026-5617) due to improper authorization checks in the handle_return_to_admin() function. This function relies on a client-controlled cookie (oclaup_original_admin) to determine the user context for authentication without server-side validation that the cookie was legitimately set during an admin-initiated user switch. Consequently, an authenticated attacker with Subscriber-level or higher privileges can set this cookie to an administrator's user ID and escalate their privileges to administrator by using the 'Return to Admin' functionality. The vulnerability affects all versions up to and including 1.0.3. No patch or official remediation has been disclosed as of the published date.
Potential Impact
An attacker with authenticated access at Subscriber level or above can exploit this vulnerability to escalate privileges to administrator. This results in full control over the affected WordPress site, including the ability to modify content, install plugins, change configurations, and potentially compromise the entire site. The CVSS score of 8.8 reflects high impact on confidentiality, integrity, and availability of the system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict access to trusted users only and consider disabling or removing the vulnerable plugin to prevent exploitation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-04-05T15:42:32.653Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69df733482d89c981ff25cc6
Added to database: 4/15/2026, 11:15:00 AM
Last enriched: 4/15/2026, 11:15:08 AM
Last updated: 4/21/2026, 3:32:18 AM
Views: 37
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.