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
Login session ids are sequential, and they are all that guards a world entry #3110
After a login, the master server keeps a world entry grant keyed by the account name and the login session id. The world server redeems it with the name and the session id the connecting client announces (EntryPointPacketHandler → RedeemWorldEntryAsync). Nothing else ties the world connection to the player who logged in.
The session id is not a secret: SessionRefHolder.GenerateSessionId in NosCore.Networking is a counter that goes up by two per login connection, starting from 2 at every restart. The logs of a fresh server show it:
INFO -- New client connected. ClientId = 2
INFO -- New client connected. ClientId = 4
A wrong session id leaves the grant in place (deliberately, so that nobody can burn another player's grant), so whoever knows an account name can open world connections with the last few even numbers while that player is on the channel list, and enter the world as them.
Expected
The session id a login hands out cannot be guessed: drawn from a cryptographic random source over the widest range the client accepts, and unique among the sessions alive at that moment.
Notes
The range needs checking in the client before it is widened: the id also keys the world packet encoding, and the client has to accept it in NsTeST.
Activity
erwan-joly commentedon Nov 14, 2026
Taking this one.
Generated by Claude Code