id: CVE-2026-34847

info:
  name: Hoppscotch <= 2026.2.1 - Open Redirect
  author: ritikchaddha
  severity: medium
  description: |
    Hoppscotch <= 2026.2.1 is vulnerable to a DOM-based open redirect on the /enter page. The redirect query parameter is passed directly to windowz location.href with no origin validation. Requires one additional query parameter to trigger. Exploited via a crafted URL such as /enter?redirect=evil.com&foo=bar.
  impact: |
    Phishing, credential theft, and OAuth token interception. Victims who click a crafted link see the legitimate Hoppscotch domain in the address bar before being silently redirected to an attacker-controlled site.
  remediation: |
    Upgrade to Hoppscotch 2026.3.0 or later. The fix validates that the redirect URL is same-origin before performing the navigation.
  reference:
    - https://github.com/hoppscotch/hoppscotch/security/advisories/GHSA-27pm-c9ch-746q
    - https://nvd.nist.gov/vuln/detail/CVE-2026-34847
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
    cvss-score: 4.7
    cve-id: CVE-2026-34847
    epss-score: 0.00401
    epss-percentile: 0.31734
    cwe-id: CWE-601
  metadata:
    verified: true
    max-request: 1
    vendor: hoppscotch
    product: hoppscotch
    shodan-query: http.title:"Hoppscotch"
    fofa-query: title="Hoppscotch"
  tags: cve,cve2026,hoppscotch,redirect

http:
  - method: GET
    path:
      - "{{BaseURL}}/enter?redirect=oast.me&foo=bar"

    matchers:
      - type: regex
        part: header
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)(?:[a-zA-Z0-9\-_\.@]*)oast\.me\/?(\/|[^.].*)?$'
# digest: 4a0a004730450220300f89ed264d5452614ddee029210f97e75a8f9e98b67b9044feba268312397002210097c2895e5a2ea33bfbaaa5b97dadf88c9b37bf7b2ddb79265bf61b59ed5b79d2:922c64590222798bb761d5b6d8e72950