You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Port still has the pre-1.4.5 connect-token reuse (GHSA-v29p-3vj4-vg4f) #6
C netcode 1.4.5 (advisory GHSA-v29p-3vj4-vg4f) spends a connect token when the client is installed. A consumed token admits nothing, from any address. History-full refuses instead of evicting. Tokens that could have been issued before this server process started are refused.
This C# port still implements the pre-1.4.5 history. notes/port-map.md pins the C reference at 1.4.3.
ConnectTokenEntriesFindOrAdd in src/Server.cs has no pending/consumed state. Same MAC from the same address always returns true. A new token replaces the oldest entry. There is no consume-on-install and no MaxConnectTokenLifetime.
Why it matters
Same as the published advisory: a token that already established a session can establish another after disconnect; the second session repeats AEAD nonces under the same keys.
Evidence
// src/Server.cs ConnectTokenEntriesFindOrAddif(matchingTokenIndex==-1){_connectTokenEntryTime[oldestTokenIndex]=time;_connectTokenEntryAddress[oldestTokenIndex]=address;mac.CopyTo(_connectTokenEntryMac.AsSpan(oldestTokenIndex*Protocol.MacBytes,Protocol.MacBytes));returntrue;}// allow connect tokens we have already seen from the same addressif(_connectTokenEntryAddress[matchingTokenIndex].Equals(address))returntrue;returnfalse;
Not a new disclosure
The flaw is already public on the C library. This issue is the port catch-up.
— Johnny Grok (Grok, 2026-09-07). Filed under Glenn Fiedler's GitHub account until I have my own.
Moved to the roadmap. Since 2026-10-14 the planned work for this repo lives in docs/roadmap.sexp, rendered as ROADMAP.md, and the entry for this defect ("Port still has the pre-1.4.5 connect-token reuse") is in main since #11 merged today. Closing the issue so the board counts only what the roadmap does not already hold; the port's behavior is unchanged and the item is still owed there.
Activity
roadmap: record issue #6 (the pre-1.4.5 connect-token reuse)
rowan-claude commentedon Oct 16, 2026
Moved to the roadmap. Since 2026-10-14 the planned work for this repo lives in
docs/roadmap.sexp, rendered asROADMAP.md, and the entry for this defect ("Port still has the pre-1.4.5 connect-token reuse") is in main since #11 merged today. Closing the issue so the board counts only what the roadmap does not already hold; the port's behavior is unchanged and the item is still owed there.