id: CVE-2018-12300

info:
  name: Seagate NAS OS 4.3.15.1 - Open Redirect
  author: 0x_Akoko
  severity: medium
  description: Seagate NAS OS 4.3.15.1 contains an open redirect vulnerability in echo-server.html, which can allow an attacker to disclose information in the referer header via the state URL parameter.
  impact: |
    Successful exploitation of this vulnerability could lead to user redirection to malicious websites, potentially resulting in the theft of sensitive information or the installation of malware.
  remediation: |
    Apply the latest security patches or updates provided by Seagate to fix the open redirect vulnerability in NAS OS 4.3.15.1.
  reference:
    - https://blog.securityevaluators.com/invading-your-personal-cloud-ise-labs-exploits-the-seagate-stcr3000101-ecf89de2170
    - https://nvd.nist.gov/vuln/detail/CVE-2018-12300
  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-12300
    cwe-id: CWE-601
    epss-score: 0.02698
    epss-percentile: 0.83971
    cpe: cpe:2.3:o:seagate:nas_os:4.3.15.1:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: seagate
    product: nas_os
    shodan-query: http.title:"seagate nas - seagate"
    fofa-query: title="seagate nas - seagate"
    google-query: intitle:"seagate nas - seagate"
  tags: cve2018,cve,redirect,seagate,nasos,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/echo-server.html?code=test&state=http://www.interact.sh#'

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