F-01LowFixedReplay protection
Replayed first flight was answered with an authenticated status after the token expired
- CVSS
- Not scored
- Retest
- · version commit 7822e49
Summary
At b924690 the node decided the 'token expired' refusal (singlink/server.go:346 and 357) before the durable replay check, and the status-only branch (server.go:364-374) consulted only the per-process set of answered flights, never the replay store. A first flight admitted with STATUS 0 while its token was valid was therefore answered again, with an authenticated STATUS 1 (token expired), when the same bytes were replayed after the token's NotAfter but inside the 120 s timestamp window. SPEC.md section 5.2 states that a replayed flight is handled silently (handed to the fallback).
Details
Local probe TestVPNLProbeReplayAfterExpiry (E-19, source E-20): token valid for 3 s; the original flight received STATUS 0; a replay sent 1.5 s after expiry received an authenticated STATUS 1; a second replay went to the fallback because the node's failed-flight cache (singlink/guard.go:115-125) then held the flight prefix. No DNS lookup, dial or UDP socket followed the status answer and the replayer could not decrypt the frame, but the reply showed that the endpoint is a SingLink node and that the token had expired. Replaying an inner first flight requires seeing it: raw tcp transport, a TLS-terminating proxy or CDN, or accepted TLS interception. Rated low by the assessor; no CVSS score is claimed. Retest at commit 7822e49 (2026-11-19): an expired-token flight stamped early enough to have been admitted before NotAfter now takes the durable path, and the other status-only refusals first look the tag up in the replay store with a new read-only ReplayStore.Has (fail closed on error). The unchanged probe file E-20 now shows no node answer to either replay (E-26). Two additional probes (E-27, source E-28) showed no node answer when the copy was sent after expiry to a second node started after the original was admitted, and, as a control, one STATUS 1 answer to a flight first delivered after expiry and no answer to its copy, as SPEC.md documents. The vendor's 10 new regression tests passed (E-29). Side effect: status-only refusals other than an expired token now read the replay store under its file lock, which adds to the load described in F-05; reads are skipped for subjects whose share of answered refusals is full.
Recommendation
Fixed in commit 7822e49 (7822e49cc84ee421fa9d0dbddd8fff6257019be9). Library users with their own ReplayStore must implement the new Has method (read-only, linearizable with CheckAndMark, fail closed).
Retest result
Fixed: replays after token expiry get no node answer, including on a node started after the original was admitted.