Skip to content

[Crash] Unchecked this.room.perm.searchPermission in boot player command #57

@coderabbitai

Description

@coderabbitai

Summary

Game server crashes when this.room.perm is undefined during boot permission check.

Affected Code

server-game/src/client.js:420

if (this.room.perm.searchPermission("boot", this.player) && client && id !== this.player.id) {
  // CRASH if this.room.perm is undefined

Vulnerability

If room initialization incomplete when player tries to boot another player.

Impact

  • Game server crash on boot command
  • Denial of service

Recommended Fix

if (this.room.perm?.searchPermission("boot", this.player) && client && id !== this.player.id) {

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions