id: CVE-2020-11034

info:
  name: GLPI <9.4.6 - Open Redirect
  author: pikpikcu
  severity: medium
  description: GLPI prior 9.4.6 contains an open redirect vulnerability based on a regexp.
  impact: |
    An attacker can exploit this vulnerability to redirect users to malicious websites, leading to phishing attacks.
  remediation: Upgrade to version 9.4.6 or later.
  reference:
    - https://github.com/glpi-project/glpi/security/advisories/GHSA-gxv6-xq9q-37hg
    - https://github.com/glpi-project/glpi/archive/9.4.6.zip
    - https://nvd.nist.gov/vuln/detail/CVE-2020-11034
    - https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5WQMONZRWLWOXMHMYWR7A5Q5JJERPMVC/
    - https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Q4BG2UTINBVV7MTJRXKBQ26GV2UINA6L/
  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-11034
    cwe-id: CWE-601,CWE-185
    epss-score: 0.07608
    epss-percentile: 0.93773
    cpe: cpe:2.3:a:glpi-project:glpi:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: glpi-project
    product: glpi
    shodan-query:
      - http.title:"glpi"
      - http.favicon.hash:"-1474875778"
    fofa-query:
      - icon_hash="-1474875778"
      - title="glpi"
    google-query: intitle:"glpi"
  tags: cve,cve2020,redirect,glpi,glpi-project,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/index.php?redirect=/\/interact.sh/'
      - '{{BaseURL}}/index.php?redirect=//interact.sh'

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