# Rejetto HFS signs session cookies with a key an attacker can rebuild from login responses

Source: https://startwithidentity.com/cves/cve-2026-61500/
Last updated: 2026-11-30
License: content by Start with Identity. Cite the source URL.

---

## What broke

Rejetto HFS is a self-hosted HTTP file server with a web admin panel. VulnCheck's advisory, published July 13, 2026 and credited to Zach Hanley of Horizon3.ai, says HFS 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." An attacker collects a few login responses, reconstructs the generator's state, recovers the signing key and forges a valid administrator session cookie. Admin access then becomes code execution through the `server_code` configuration feature. HFS 3.2.1 fixes it.

NVD shows the VulnCheck CNA's CVSS 3.1 score of 9.8 (9.3 in CVSS 4.0) and CWE-338 (cryptographically weak PRNG); NVD's own analysis was still pending. GreyNoise reported on November 23, 2026 that an automated pipeline exploited an unpatched HFS server this way from October 2: it harvested session IDs from repeated logins, rebuilt the V8 generator state, forged an admin cookie with `allow_session_ip_change:true` so it worked from any address, then installed command hooks, added an SSH key for root and turned the box into a relay for later intrusions. CISA added the CVE to KEV on November 30, 2026.

## Why it matters

A signed session cookie is only as strong as the key that signs it. Here the key came from the same non-cryptographic generator that produced values HFS handed to anyone who tried to log in, so the "secret" could be calculated rather than stolen. No password was guessed and no cookie was intercepted; the attacker simply minted a [session](https://startwithidentity.com/glossary/session-hijacking/) for the administrator. The fix pattern applies well beyond HFS: session keys, CSRF tokens and reset tokens need a cryptographic random source, and nothing derived from that source should be shown to clients.

## What to do

- Upgrade HFS to 3.2.1 or later.
- Keep the HFS admin panel off the internet, or put it behind a VPN or an authenticating proxy.

## After you patch

- Review the HFS accounts list and configuration for changes you did not make, since a forged admin cookie leaves no failed logins behind.
- Look for unfamiliar entries in `server_code` and plugin or middleware hooks, new SSH keys in `/root/.ssh/authorized_keys`, and admin requests with the user agent `Mozilla/5.0 (X11; Linux x86_64) research` that GreyNoise linked to this campaign.

## Sources

- [NVD: CVE-2026-61500](https://nvd.nist.gov/vuln/detail/cve-2026-61500)
- [VulnCheck advisory: Rejetto HFS session forgery via predictable signing key](https://www.vulncheck.com/advisories/rejetto-hfs-session-forgery-via-predictable-signing-key)
- [Rejetto HFS v3.2.1 release](https://github.com/rejetto/hfs/releases/tag/v3.2.1)
- [GreyNoise: 99 IPs but a C2 ain't one (November 23, 2026)](https://www.greynoise.io/blog/check-point-security-management-servers-intrusion-campaign)
- [CISA Known Exploited Vulnerabilities catalog, added November 30, 2026](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-61500)
