HexBrain

Browse / CVEs / CVE-2022-0869

CVE-2022-0869· spirit-project / spirit· CWE-601

nitely/spirit 0.12.3 - Open Redirect

mediumseverity
6.1CVSS score
2.6%likelihood of exploitation, next 30 days
86%of all CVEs are less likely
Readycheck to confirm it

Multiple Open Redirect in GitHub repository nitely/spirit prior to 0.12.3.

Impact

An attacker can exploit this vulnerability to redirect users to malicious websites, leading to phishing attacks or the theft of sensitive information.

Fix

Upgrade to a patched version of nitely/spirit to mitigate the open redirect vulnerability (CVE-2022-0869).

How to confirm it

Send: GET {{BaseURL}}/user/login/?next=https%3A%2F%2Finteract.sh ; GET {{BaseURL}}/user/logout?next=https%3A%2F%2Finteract.sh ; GET {{BaseURL}}/user/register?next=https%3A%2F%2Finteract.sh ; GET {{BaseURL}}/user/resend-activation?next=https%3A%2F%2Finteract.sh
Positive when: matches in header /(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)(?:[a-zA-Z0-9\-_\.@]*…/

Run it with nuclei: nuclei -id CVE-2022-0869 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2022-0869

info:
  name: nitely/spirit 0.12.3 - Open Redirect
  author: ctflearner
  severity: medium
  description: |
    Multiple Open Redirect in GitHub repository nitely/spirit prior to 0.12.3.
  impact: |
    An attacker can exploit this vulnerability to redirect users to malicious websites, leading to phishing attacks or the theft of sensitive information.
  remediation: |
    Upgrade to a patched version of nitely/spirit to mitigate the open redirect vulnerability (CVE-2022-0869).
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2022-0869
    - https://huntr.dev/bounties/ed335a88-f68c-4e4d-ac85-f29a51b03342
    - https://github.com/nitely/spirit/commit/8f32f89654d6c30d56e0dd167059d32146fb32ef
  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-2022-0869
    cwe-id: CWE-601
    epss-score: 0.02642
    epss-percentile: 0.85713
    cpe: cpe:2.3:a:spirit-project:spirit:*:*:*:*:*:*:*:*
  metadata:
    max-request: 4
    vendor: spirit-project
    product: spirit
  tags: cve,cve2022,huntr,redirect,nitely,spirit,spirit-project,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/user/login/?next=https%3A%2F%2Finteract.sh"
      - "{{BaseURL}}/user/logout?next=https%3A%2F%2Finteract.sh"
      - "{{BaseURL}}/user/register?next=https%3A%2F%2Finteract.sh"
      - "{{BaseURL}}/user/resend-activation?next=https%3A%2F%2Finteract.sh"

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

References

Use this check only on systems you are authorised to test. Where the data comes from