id: CVE-2020-15129

info:
  name: Traefik - Open Redirect
  author: dwisiswant0
  severity: medium
  description: Traefik before 1.7.26, 2.2.8, and 2.3.0-rc3 contains an open redirect vulnerability in the X-Forwarded-Prefix header. 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 manipulate the redirect URL and trick users into visiting malicious websites.
  remediation: |
    Apply the vendor-provided patch or upgrade to a non-vulnerable version of Traefik.
  reference:
    - https://securitylab.github.com/advisories/GHSL-2020-140-Containous-Traefik
    - https://github.com/containous/traefik/releases/tag/v2.2.8
    - https://github.com/containous/traefik/pull/7109
    - https://github.com/containous/traefik/security/advisories/GHSA-6qq8-5wq3-86rp
    - https://nvd.nist.gov/vuln/detail/CVE-2020-15129
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 4.7
    cve-id: CVE-2020-15129
    cwe-id: CWE-601
    epss-score: 0.76842
    epss-percentile: 0.98976
    cpe: cpe:2.3:a:traefik:traefik:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: traefik
    product: traefik
    shodan-query: http.title:"traefik"
    fofa-query: title="traefik"
    google-query: intitle:"traefik"
  tags: cve,cve2020,traefik,redirect,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    headers:
      X-Forwarded-Prefix: "https://foo.nl"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<a href=\"https://foo.nl/dashboard/\">Found</a>"

      - type: status
        status:
          - 302
# digest: 490a0046304402202ae4474364348f21da62670bbe025979a681ae7b16c06b8e0e453fa74e4e778b022066ebac3e18f08a80cbb34634d96bee647914376243a3804c5735e750a9c00903:922c64590222798bb761d5b6d8e72950