id: CVE-2022-45917

info:
  name: ILIAS eLearning <7.16 - Open Redirect
  author: arafatansari
  severity: medium
  description: |
    ILIAS eLearning before 7.16 contains an open redirect vulnerability. 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 phishing attacks.
  remediation: |
    Upgrade to ILIAS eLearning version 7.16 or later to fix the open redirect vulnerability.
  reference:
    - https://packetstormsecurity.com/files/170181/ILIAS-eLearning-7.15-Command-Injection-XSS-LFI-Open-Redirect.html
    - https://seclists.org/fulldisclosure/2022/Dec/7
    - https://sec-consult.com/vulnerability-lab/advisory/multiple-critical-vulnerabilities-in-ilias-elearning-platform/
    - https://github.com/advisories/GHSA-hf6q-rx44-fh6j
    - https://nvd.nist.gov/vuln/detail/CVE-2022-45917
  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-2022-45917
    cwe-id: CWE-601
    epss-score: 0.00221
    epss-percentile: 0.60187
    cpe: cpe:2.3:a:ilias:ilias:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: ilias
    product: ilias
    shodan-query:
      - http.html:"ILIAS"
      - http.html:"ilias"
    fofa-query: body="ilias"
  tags: cve,cve2022,redirect,packetstorm,seclists,ilias,xss

http:
  - method: GET
    path:
      - "{{BaseURL}}/shib_logout.php?action=logout&return=https://oast.me"
      - "{{BaseURL}}/ilias/shib_logout.php?action=logout&return=https://oast.me"

    stop-at-first-match: true
    matchers:
      - type: regex
        part: header
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)?(?:[a-zA-Z0-9\-_\.@]*)oast\.me\/?(\/|[^.].*)?$'
# digest: 4a0a00473045022100e44ab5fc44d243c2986d56d1ac198b7488c6ee638b458f0c0484ce57eb2a7e5b022005e8217801b55506969734f5761d2f6637220758345c3a89309c9722bf1cc044:922c64590222798bb761d5b6d8e72950