SecurityContext

CVE-2021-29622: Prometheus - Open Redirect

Classification

  • Cwe: CWE-601
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.1956
  • Epss percentile: 0.97447
  • Cpe: cpe:2.3:a:prometheus:prometheus:*:*:*:*:*:*:*:*

Metadata

  • Max-request: 1
  • Product: prometheus
  • Vendor: prometheus

Products

ProductIndexedUrl
prometheus:prometheusyes/v1/products/prometheus/prometheus

Labels

  • Name: Prometheus - Open Redirect
  • Impact: Attackers can redirect users to malicious sites, potentially leading to information theft, data modification, or unauthorized operations.
  • Remediation: Update to the latest version, preferably 2.27.0 or later, where the bug is fixed.
  • Vulnerability type: open_redirect
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2021-29622
  • Checked, none or zero: vulnerability impact
  • Not known: requirements

```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.

impact: |

An attacker can exploit this vulnerability to redirect users to malicious websites, leading to potential phishing attacks or the disclosure of sensitive information.

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

- https://github.com/d4n-sec/d4n-sec.github.io

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.1956

epss-percentile: 0.97447

cpe: cpe:2.3:a:prometheus:prometheus:*:*:*:*:*:*:*:*

metadata:

max-request: 1

vendor: prometheus

product: prometheus

tags: cve2021,cve,prometheus,redirect,vuln

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: 4b0a00483046022100bf57c03a0e0b67a5a578630cf8f98db0faa37a89fb359a70ed3d2234dc201448022100899701a6758bbe09da5ca343b55434ddf4af920856c2883c37d8d032ad3d3181:922c64590222798bb761d5b6d8e72950

```