id: CVE-2018-14474

info:
  name: Orange Forum 1.4.0 - Open Redirect
  author: 0x_Akoko
  severity: medium
  description: |
    Orange Forum 1.4.0 contains an open redirect vulnerability in views/auth.go via the next parameter to /login or /signup. 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 or the installation of malware.
  remediation: |
    Upgrade to a patched version of Orange Forum or apply the necessary security patches to fix the open redirect vulnerability.
  reference:
    - https://github.com/s-gv/orangeforum/commit/1f6313cb3a1e755880fc1354f3e1efc4dd2dd4aa
    - https://seclists.org/fulldisclosure/2019/Jan/32
    - https://vuldb.com/?id.122045
    - https://nvd.nist.gov/vuln/detail/CVE-2018-14474
    - 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-2018-14474
    cwe-id: CWE-601
    epss-score: 0.02257
    epss-percentile: 0.81222
    cpe: cpe:2.3:a:goodoldweb:orange_forum:1.4.0:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: goodoldweb
    product: orange_forum
  tags: cve2018,cve,redirect,orangeforum,oss,seclists,goodoldweb,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/login?next=http://interact.sh/?app.scan/'
      - '{{BaseURL}}/signup?next=http://interact.sh/?app.scan/'

    stop-at-first-match: true
    matchers:
      - type: regex
        part: header
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)(?:[a-zA-Z0-9\-_\.@]*)interact\.sh\/?(\/|[^.].*)?$' # https://regex101.com/r/L403F0/1
# digest: 4b0a00483046022100d547af7d827536d46848bbbfc4d95c015d5347bc090fecb0201daaa0b1e3c1f2022100e0eecaa3c4f496609aa6b7c5b5b6c5dae43704ef8954c0cc05475aafdf0d744d:922c64590222798bb761d5b6d8e72950