id: CVE-2020-11529

info:
  name: Grav <1.7  - Open Redirect
  author: 0x_Akoko
  severity: medium
  description: Grav before 1.7 has an open redirect vulnerability via common/Grav.php. This is partially fixed in 1.6.23 and still present in 1.6.x.
  impact: |
    An attacker can exploit this vulnerability to redirect users to malicious websites, leading to phishing attacks.
  remediation: |
    Upgrade Grav CMS to version 1.7 or later to fix the open redirect vulnerability.
  reference:
    - https://github.com/getgrav/grav/issues/3134
    - https://nvd.nist.gov/vuln/detail/CVE-2020-11529
    - https://github.com/getgrav/grav/commit/2eae104c7a4bf32bc26cb8073d5c40464bfda3f7
    - https://getgrav.org/#changelog
    - https://github.com/ARPSyndicate/kenzer-templates
  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-2020-11529
    cwe-id: CWE-601
    epss-score: 0.68647
    epss-percentile: 0.97818
    cpe: cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: getgrav
    product: grav
  tags: cve2020,cve,redirect,grav,getgrav

http:
  - method: GET
    path:
      - '{{BaseURL}}/%252f%255cinteract.sh%252fa%253fb/'

    matchers:
      - type: regex
        part: header
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)(?:[a-zA-Z0-9\-_\.@]*)interact\.sh\/?(\/|[^.].*)?$' # https://regex101.com/r/L403F0/1
# digest: 4a0a00473045022100f9ba56278b16ad138fc888872039cba94fa49a8e78037ff4d43249e9688d2a800220106890406b5f16cbd17bda7f3bb17ce7b985c7bd5a6a02d6a5e9a07464f93164:922c64590222798bb761d5b6d8e72950