Detection-only triage scanner for Rejetto HFS CVE-2026-61500 (unauthenticated session forgery to RCE, CVSS 9.8, CISA KEV 30 Nov 2026). Grades versions, runs a version-agnostic sid probe, hunts access logs. No payloads.
# `hfs-scanner`
Detection-only triage for `Rejetto HFS` `CVE-2026-61500` — unauthenticated session forgery to remote code execution, `CVSS 9.8`, added to `CISA`'s Known Exploited Vulnerabilities catalog on `30 Nov 2026`. `HFS 3.0.0` through `3.2.0` signs its session cookies with a key derived from `JavaScript`'s `Math.random()`, and the login handshake hands raw outputs of that same generator to anyone who starts a login. Collect a few of those numbers, rebuild the generator's state, recover the signing key, forge an admin cookie, and the admin panel's `server_code` feature runs your code on the host. Grades your version against the fix table, reads the version from a local install, fingerprints a live site from public reads, runs a version-agnostic `sid` probe that tells a vulnerable build from a patched one without knowing the version, and hunts your access logs for the exploitation footprints. Nothing here recovers a key, forges a cookie, completes a login, or sends a payload.
## `What it checks`
The chain has three parts, and all three are the kind of mistake that looks harmless alone. First, the signing key. When `COOKIE_SIGN_KEYS` is unset, `HFS` builds its `Koa` session-signing key at startup as `randomId(30)` — three consecutive `Math.random()` outputs rendered in base 36. `Math.random()` in `V8` is `xorshift128+`, a reversible generator: its outputs are not random in the sense that matters, they are a window into its internal state. Second, the leak. The `loginSrp1` endpoint sets `sid = Math.random()` and stores it in the caller's own session, and `koa-session` cookies are `base64` `JSON`, signed but not encrypted — so anyone who starts a login reads the exact 52-bit double out of their own `Set-Cookie` header, no password needed, only a valid login-enabled username. Third, the payoff. `HFS` lets an administrator define custom endpoints running arbitrary server-side `JavaScript` (the `server_code` feature), so a forged admin session is code execution, no