id: CVE-2021-3654

info:
  name: Nova noVNC - Open Redirect
  author: geeknik
  severity: medium
  description: Nova noVNC contains an open redirect vulnerability. 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 potential phishing attacks.
  remediation: |
    Apply the latest security patches or updates provided by the vendor to fix the open redirect vulnerability in the Nova noVNC application.
  reference:
    - https://seclists.org/oss-sec/2021/q3/188
    - http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3654
    - https://bugs.python.org/issue32084
    - https://opendev.org/openstack/nova/commit/04d48527b62a35d912f93bc75613a6cca606df66
    - https://nvd.nist.gov/vuln/detail/CVE-2021-3654
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2021-3654
    cwe-id: CWE-601
    epss-score: 0.92596
    epss-percentile: 0.98944
    cpe: cpe:2.3:a:openstack:nova:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: openstack
    product: nova
  tags: cve2021,cve,redirect,novnc,seclists,openstack

http:
  - method: GET
    path:
      - '{{BaseURL}}//interact.sh/%2f..'

    matchers-condition: and
    matchers:
      - type: regex
        part: header
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?://|//)?(?:[a-zA-Z0-9\-_\.@]*)interact\.sh.*$'

      - type: status
        status:
          - 302
          - 301
# digest: 4a0a00473045022038b9f6ddbb2bec14ec5183894095d1bb6407357f4b3884a6cd3968caf9b2ff4d022100dec5cef15816ab428fbc7a300123ad1d5f0e8bb046107d7f0d4f5d869b16d70c:922c64590222798bb761d5b6d8e72950