Summary
Game server crashes when this.room.perm is undefined during command processing.
Affected Code
server-game/src/client.js:345
if (text.startsWith("/")) {
this.room.perm.inputCmd(this.player, text); // CRASH if this.room.perm is undefined
Vulnerability
If room initialization fails or race condition during shutdown, this.room.perm may be undefined.
Impact
- Game server crash when player types command
- Denial of service
Recommended Fix
if (text.startsWith("/")) {
this.room.perm?.inputCmd(this.player, text);
References