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.35694
    epss-percentile: 0.9714
    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: 490a004630440220763deccf7ee8e17f9e80e65bd9adc7767e11d200de60bac70d6e92405ed07c50022009409dd44d752fcd90f265427f7a87ad19491771314d4560034460206f038e78:922c64590222798bb761d5b6d8e72950