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.0199
    epss-percentile: 0.78656
    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,vuln

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