nuclei-templates/http/cves/2021/CVE-2021-29622.yaml

40 lines
1.8 KiB
YAML

id: CVE-2021-29622
info:
name: Prometheus - Open Redirect
author: geeknik
severity: medium
description: Prometheus 2.23.0 through 2.26.0 and 2.27.0 contains an open redirect vulnerability. To ensure a seamless transition to 2.27.0, the default UI was changed to the new UI with a URL prefixed by /new redirect to /. Due to a bug in the code, an attacker can redirect a user to a malicious site and possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
remediation: The issue was patched in the 2.26.1 and 2.27.1 releases. In 2.28.0, the /new endpoint will be removed completely. The workaround is to disable access to /new via a reverse proxy in front of Prometheus.
reference:
- https://github.com/prometheus/prometheus/security/advisories/GHSA-vx57-7f4q-fpc7
- https://github.com/prometheus/prometheus/releases/tag/v2.26.1
- https://github.com/prometheus/prometheus/releases/tag/v2.27.1
- https://nvd.nist.gov/vuln/detail/CVE-2021-29622
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2021-29622
cwe-id: CWE-601
epss-score: 0.00225
epss-percentile: 0.60697
cpe: cpe:2.3:a:prometheus:prometheus:*:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: prometheus
product: prometheus
tags: cve,cve2021,prometheus,redirect
http:
- method: GET
path:
- "{{BaseURL}}/new/newhttp://interact.sh"
matchers:
- type: regex
part: header
regex:
- '(?m)^(?:Location\s*?:\s*?)(?:https?://|//)?(?:[a-zA-Z0-9\-_\.@]*)interact\.sh.*$'
# digest: 4a0a00473045022100d3b5af559f9be4e57bc7749397070a811b4cddf5ee81a7c8400271879ed8a93f02201ac6855136a49303eaf324a89b27690e648860681f4aa1344ce32c6df342b350:922c64590222798bb761d5b6d8e72950