From 1b77466ac66028b54b27f76adb59906e4297e2d4 Mon Sep 17 00:00:00 2001 From: 22314621 Date: Mon, 18 May 2026 01:48:20 +0300 Subject: [PATCH] fix(game): patch Desync DoS vulnerability with strict majority consensus --- src/server/GameServer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/GameServer.ts b/src/server/GameServer.ts index 59673e2fda..2f43659ae4 100644 --- a/src/server/GameServer.ts +++ b/src/server/GameServer.ts @@ -1198,8 +1198,8 @@ export class GameServer { } } - // If half clients out of sync assume all are out of sync. - if (outOfSyncClients.length >= Math.floor(this.activeClients.length / 2)) { + // If strict majority clients out of sync assume all are out of sync. + if (outOfSyncClients.length > Math.floor(this.activeClients.length / 2)) { outOfSyncClients = this.activeClients; }