Honeypots run by VulnCheck have picked up internet-wide probing for CVE-2026-61500, a session-cookie signing weakness in Rejetto HFS that lets an unauthenticated attacker forge an administrator session and reach remote code execution. The bug affects HFS 3.0.0 through 3.2.0 and was fixed in 3.2.1. Observed activity so far looks like limited reconnaissance from one Chinese ISP address against hosts in Japan and the United States, with no confirmed successful compromise.

What the honeypots saw

VulnCheck VP of Security Research Caitlin Condon said in a LinkedIn post over the weekend that the company's Canary Intelligence honeypots had recorded probes aimed at CVE-2026-61500. According to Condon, the traffic looks like small-scale reconnaissance originating from a single China Telecom IP address and directed at deployments in Japan and the United States.

VulnCheck has not disclosed whether any of those attempts succeeded, nor has it described post-exploitation behavior. The timing suggests the scans may be a reaction to the public release of technical details and a working proof of concept.

Predictable key, convenient leak

Rejetto HFS is a free, open-source HTTP file server used for self-hosted file sharing on Windows, Linux, and macOS. The vulnerability was first published on July 13, 2026, and is described by NIST's National Vulnerability Database as a session-cookie signing weakness combined with a leakage issue.

The root cause is that HFS builds its session-cookie signing key from Math.random(), a non-cryptographic generator, and separately hands unauthenticated clients raw output from that same generator during the login flow. An attacker only needs to collect a small number of login responses to reconstruct the generator's internal state. With the state in hand, the signing key can be recovered, and a valid administrator session cookie can be minted without any credentials.

That forged cookie grants full administrative control of the server. From there, the attacker can abuse the server_code configuration feature to run custom server-side JavaScript, which is the path to remote code execution.

From forged session to code execution

Horizon3 researchers found the flaw with help from Anthropic's Mythos model, which flagged both the weak key generation and the separate leak that makes key recovery practical. According to the researchers, the model did not stop at identifying the insecure PRNG in isolation: it also spotted that the application exposed raw Math.random() outputs through an independent code path, recognized the two findings as a chain, and concluded that the leak yielded exactly the observations required for feasible state recovery.

Horizon3 published a detailed write-up and a proof-of-concept exploit on September 30, 2026. The PoC walks the full chain — harvesting login responses, reconstructing the generator state, deriving the signing key, forging an administrative cookie — and then leverages HFS's built-in facility for executing custom server-side JavaScript to obtain code execution on the host.

Once an attacker holds administrative access, the plausible outcomes include reading, exfiltrating, or deleting files served by HFS, deploying malware on the server, or pivoting from the compromised host into internal systems reachable from it.

Technical background

This section is general background on the vulnerability class, not a description of the HFS exploit itself.

Generators such as Math.random() in JavaScript engines are designed for statistical quality and speed, not unpredictability against an adversary. V8, for example, implements Math.random() on top of xorshift128+, a linear generator over GF(2). Because the algorithm is linear, output bits are linear functions of the 128-bit internal state, and enough observed outputs allow that state to be solved for directly — the well-known "predicting random numbers in V8" result. Each double returned to JavaScript exposes a large slice of state, so a modest number of samples is generally sufficient.

The generic recovery pattern looks like this:


# GENERIC ILLUSTRATION ONLY - not the HFS exploit and not HFS's exact scheme.
# 1. Collect consecutive Math.random() outputs leaked by the target.
# 2. Invert each double to the mantissa bits it reveals about (s0 + s1) mod 2^64.
# 3. Build a linear system over GF(2) for the 128-bit xorshift128+ state.
# 4. Solve it, then step the generator forward to reproduce future outputs
#    and any secret material derived from them.

from fractions import Fraction

def invert_double(x: float):
    """Return the constraint contributed by one 53-bit double output."""
    mantissa = int(Fraction(x) * (1 << 53))  # the observable top bits
    return mantissa  # feed into the linear solver

The second half of the chain is equally generic: applications that sign session cookies with a key derived from a PRNG rather than from a CSPRNG or a stored secret lose the integrity guarantee entirely. If an attacker can predict the key, they can produce a cookie the server will accept as legitimate — the signature proves nothing about who created it. Sketched abstractly, with a placeholder algorithm:


# GENERIC ILLUSTRATION ONLY - algorithm and payload format are placeholders.
import hmac, hashlib, base64

recovered_key = b"..."            # derived from the recovered PRNG state
payload = b"role=admin;user=..."  # any session fields the app trusts
sig = hmac.new(recovered_key, payload, hashlib.sha256).digest()
forged = base64.urlsafe_b64encode(payload + b"." + sig)

Finally, features that intentionally execute operator-supplied code — plugin hooks, template engines, or HFS's server_code configuration — convert an authentication bypass into full remote code execution. That is why a signing-key flaw in a file server should be treated as a code-execution flaw, not merely an access-control issue.

Detection and mitigation

Upgrade path first: HFS 3.2.1 is the minimum fixed release, and 3.3.4 — the latest stable version at the time of the advisory — is the better target. Any deployment still on 3.0.0 through 3.2.0 should be considered exposed.

Beyond patching, treat existing instances as potentially compromised. Rotate anything the server could reach, and audit the configuration for server_code entries that were not placed there by an administrator, since that setting is the documented route from a forged cookie to code execution. Review authentication activity for bursts of login responses followed by administrative actions from sessions that cannot be tied to a real login.

Generic hygiene commands and controls:


# Confirm the deployed version before and after upgrading.
# Check the version string reported by your installation or admin console,
# and confirm the running process matches the package you just installed.

# Inventory exposed instances so nothing is missed.
# (Illustrative - substitute your own asset inventory or scanner.)
nmap -Pn -p 80,443 --open 10.0.0.0/24

# Restrict management access at the network edge where possible.
# Allow only known administrative sources to reach the HFS listener.

If an instance cannot be patched immediately, take it off the public internet and restrict access to trusted networks until the upgrade is complete.

References