Attackers are actively exploiting Rejetto HFS to forge administrator sessions and execute arbitrary code remotely. GajIPS detects the code-execution stage of the attack.
Severity: CRITICAL · Priority: P1 — actively exploited unauthenticated RCE in a public file server, escalate on hit
This rule detects the code-execution step of CVE-2026-61500, a critical vulnerability in Rejetto HTTP File Server (HFS) versions 3.0.0 through 3.2.0, actively exploited since October 3, 2026 — one day after a public exploit walkthrough was published by Horizon3.ai. The vulnerability is caused by HFS generating its session-cookie signing key using JavaScript's Math.random(), a non-cryptographic generator whose outputs are also leaked to unauthenticated clients during the login handshake. An attacker collects a handful of login responses, reconstructs the V8 engine's PRNG internal state, recovers the exact signing key, and forges a session cookie that HFS accepts as a valid administrator session. With forged admin access, the attacker calls the set_config API to insert arbitrary JavaScript into the server_code configuration field, which HFS executes immediately and with the privileges of the server process, achieving full remote code execution.
A hit indicates that an attacker has already successfully forged an administrator session and is actively installing a code-execution payload. Isolate the server immediately — by the time this rule fires, the payload has likely already executed. Check the HFS server_code configuration for any JavaScript you did not add, particularly anything involving require('child_process') or external network calls. Treat the server as fully compromised: any files it hosted, credentials stored on it, or other services reachable from it should be considered exposed. Upgrade to HFS 3.2.1 as the definitive fix.