id: CVE-2017-1000163

info:
  name: Phoenix Framework - Open Redirect
  author: 0x_Akoko
  severity: medium
  description: Phoenix Framework versions 1.0.0 through 1.0.4, 1.1.0 through 1.1.6, 1.2.0, 1.2.2 and 1.3.0-rc.0 contain an open redirect vulnerability, which may result in phishing or social engineering attacks.
  impact: |
    An attacker can craft a malicious URL that redirects users to a malicious website, leading to potential phishing attacks.
  remediation: |
    Apply the latest security patches or upgrade to a patched version of the Phoenix Framework.
  reference:
    - https://elixirforum.com/t/security-releases-for-phoenix/4143
    - https://vuldb.com/?id.109587
    - https://nvd.nist.gov/vuln/detail/CVE-2017-1000163
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2017-1000163
    cwe-id: CWE-601
    epss-score: 0.0206
    epss-percentile: 0.78838
    cpe: cpe:2.3:a:phoenixframework:phoenix:1.0.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: phoenixframework
    product: phoenix
  tags: cve,cve2017,redirect,phoenix,phoenixframework,vuln

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

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