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.10879
    epss-percentile: 0.95298
    cpe: cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: getgrav
    product: grav
  tags: cve2020,cve,redirect,grav,getgrav,vuln

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