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.01625
    epss-percentile: 0.82113
    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: 4a0a0047304502207af1b64d291fe6bea218f54d7113a7b971e60af5981dbd7eae3d4086cf44b4b9022100a8cfe3fe1439dac6853ba8deaf4e0ddf640aecdbac052085fae85677c118a115:922c64590222798bb761d5b6d8e72950