Create CVE-2021-29622.yaml

patch-1
Geeknik Labs 2021-05-20 13:13:18 +00:00 committed by GitHub
parent 20582f1eb7
commit dde1e5e736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
id: CVE-2021-29622
info:
name: Prometheus v2.23.0 to v2.26.0, and v2.27.0 Open Redirect
author: geeknik
description: In 2.23.0, Prometheus changed its default UI to the New ui. To ensure a seamless transition, the URL's prefixed by /new redirect to /. Due to a bug in the code, it is possible for an attacker to craft an URL that can redirect to any other URL, in the /new endpoint.
reference: https://github.com/prometheus/prometheus/security/advisories/GHSA-vx57-7f4q-fpc7
severity: medium
tags: cve,cve2021,prometheus,redirect
requests:
- method: GET
path:
- "{{BaseURL}}/new/newhttp://example.com"
matchers:
- type: regex
regex:
- '(?m)^(?:Location\s*?:\s*?)(?:https?://|//)?(?:[a-zA-Z0-9\-_\.@]*)example\.com.*$'
part: heade