CVE-2026-61500: Rejetto HFS 3.0.0 - 3.2.0 - Session Forgery via Predictable Signing Key

2026-12-04 PoC Public

Description

Rejetto HFS (HTTP File Server) 3.0.0 through 3.2.0 derives its session-cookie signing key from the non-cryptographic Math.random() generator and discloses outputs of the same generator to unauthenticated clients during login. A remote attacker can collect a small number of login responses, reconstruct the generator's state, recover the signing key, and forge a valid administrator session cookie.

Details

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

PoC

id: CVE-2026-61500

info:
  name: Rejetto HFS 3.0.0 - 3.2.0 - Session Forgery via Predictable Signing Key
  author: ritikchaddha
  severity: critical
  description: |
    Rejetto HFS (HTTP File Server) 3.0.0 through 3.2.0 derives its session-cookie signing key from the non-cryptographic Math.random() generator and discloses outputs of the same generator to unauthenticated clients during login. A remote attacker can collect a small number of login responses, reconstruct the generator's state, recover the signing key, and forge a valid administrator session cookie.
  impact: |
    Unauthenticated attackers can forge an administrator session, gaining full administrative access to HFS and remote code execution via the server_code configuration feature.
  remediation: |
    Update Rejetto HFS to version 3.2.1 or later.
  reference:
    - https://github.com/rejetto/hfs/releases/tag/v3.2.1
    - https://github.com/rejetto/hfs/commit/59472e534bf7e056d708382d02935c2eaf956927
    - https://www.vulncheck.com/advisories/rejetto-hfs-session-forgery-via-predictable-signing-key
    - https://nvd.nist.gov/vuln/detail/CVE-2026-61500
  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-61500
    epss-score: 0.5532
    epss-percentile: 0.9905
    cwe-id: CWE-338
  metadata:
    verified: true
    max-request: 1
    vendor: rejetto
    product: http_file_server
    shodan-query:
      - "Server: HFS 3"
      - http.html:"HFS = {"
    fofa-query: app="HFS"
  tags: cve,cve2026,rejetto,hfs,auth-bypass,rce,kev,vkev,passive,vd

http:
  - method: GET
    path:
      - "{{BaseURL}}/"

    matchers:
      - type: dsl
        dsl:
          - 'contains_any(to_lower(response), "hfs", "HFS = {")'
          - "compare_versions(version, '>= 3.0.0', '< 3.2.1')"
        condition: and

    extractors:
      - type: regex
        name: version
        part: response
        group: 1
        regex:
          - '(?i)server:\s*HFS\s+([0-9]+\.[0-9]+\.[0-9]+(?:-[a-z0-9.]+)?)'
          - '"VERSION":\s*"([0-9]+\.[0-9]+\.[0-9]+(?:-[a-z0-9.]+)?)"'
# digest: 4a0a0047304502210099ae7906795e1a1ebf3844d08f4529296f51cfd710f10d5e48bbaf9befdb11a80220472873b153e24a8103ea381f2d4e124475351816e2119d29f2d24ee8b9b0f831:922c64590222798bb761d5b6d8e72950

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

References

微信搜一搜 biu.life