Login as User or Customer <= 3.2 — Privilege Escalation
CVE-2022-4305Published · Updated Action summary
Affected: ≤3.2Update to 3.3 or newer
All remediation steps- Severity
- Critical9.8
- CVSS
- 9.8CVSS 3.1 · CNA (Wordfence)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HWhat does this vector mean?
AV:NAttack vector- Network
AC:LAttack complexity- Low
PR:NPrivileges required- None
UI:NUser interaction- None
S:UScope- Unchanged
C:HConfidentiality- High
I:HIntegrity- High
A:HAvailability- High
- Weakness
- CWE-285 Improper Authorization
- Required access
- No account needed
- Exploit prediction (EPSS)
- No score
- CISA KEV
- Not listed
On this page8
Am I affected?
Login as User or Customer — User Switching login-as-customer-or-user
- Affected≤ 3.2
- Patched in3.3
Update to 3.3 or newer.
You are affected if you run ≤ 3.2. Version 3.3 and later are not affected by this issue.
- Check your version: in wp-admin go to Plugins → Installed Plugins and read the version under Login as User or Customer — User Switching.
- No admin access? Run a passive check of your site. It reads public files only.
- No account is needed to exploit this. Treat any exposed site on an affected version as at risk.
What to do
- Update to version 3.3, or a newer patched version
- Rotate administrator passwords and application secrets if the site ran a vulnerable version while publicly reachable.
- Watch Login as User or Customer — User Switching to get an email when the next vulnerability is published.
Advisory
Source description from Wordfence Intelligence, credited to cydave.
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.
Exploits & references
Proof-of-concept & detection
No public proof-of-concept or detection template is known for this vulnerability.
Advisories & patches
- Advisorywordfence.com
Related CVEs
More in Login as User or Customer — User Switching
All 5| Severity | Vulnerability | CVE | Published |
|---|---|---|---|
| High8.1 | Unauthenticated Limited Admin Account Compromise 3.8 – 3.8No patch available | CVE-2023-7247 | |
| Critical9.8 | Authentication Bypass ≤3.8Update to 3.9.1 | CVE-2023-51484 | |
| High8.8 | Cross-Site Request Forgery to Arbitrary Plugin Installation/Activation ≤1.9Update to 2.1 | — | |
| High8.8 | Missing Authorization to Arbitrary Plugin Installation/Activation <1.8Update to 1.8 | CVE-2021-24195 |
- High8.1Unauthenticated Limited Admin Account Compromise
3.8 – 3.8No patch available
- Critical9.8Authentication Bypass
≤3.8Update to 3.9.1
- High8.8Cross-Site Request Forgery to Arbitrary Plugin Installation/Activation
≤1.9Update to 2.1
- High8.8Missing Authorization to Arbitrary Plugin Installation/Activation
<1.8Update to 1.8
Timeline
CVE published
Severity critical, CVSS 9.8
Record last updated
Sources & licenses
Wordfence record- Vulnerability data
- Wordfence Intelligence. [object Object] Licensed under the CC BY-SA 4.0.
- CVE® identifiers
- [object Object]. Used under the CVE Program. CVE® is a registered trademark of The MITRE Corporation.
- CVSS / CWE
- National Vulnerability Database (NVD), shown unmodified. This product uses the NVD API but is not endorsed or certified by the NVD.
- VulnCrest content
- Summary, remediation guidance and page layout © VulnCrest. Not sourced from NVD.
