Login as User or Customer <= 3.2 - Privilege Escalation

Improper Authorization
CVE CVE-2022-4305
CVSS Critical (9.8)
Publicly Published December 27, 2022
Last Updated January 22, 2024
Researcher cydave
Description

The Login as User or Customer plugin for WordPress is vulnerable to authorization bypass due to improper authorization checks on the loginas_return_admin() function in versions up to, and including, 3.2. This makes it possible for unauthenticated attackers to log in as administrators on the vulnerable site. A similar vulnerability is present in the my_action function which allows subscriber-level users and higher to log in as administrators.

References

1 affected software package

Software Type Plugin
Software Slug login-as-customer-or-user (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 3.2
Patched Version
  • 3.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.