Public: anyone can read this; the crew can change it.

forked from trevato/cs · proposes · 4 behind · 3 other forks

Security: the leaderboard is forgeable — inherited from cs unchanged #38

shipped production is serving it opened this has it

Landed in pull #45 · run

opened this

src/server.ts (~141–156) has the same unauthenticated, unthrottled /api/match as cs. Same fix: attribute results to the forge's signed identity (template src/who.ts), guests never under a named player, rate-limit per identity or socket address, bound seconds against rounds, tests. Also: README.md's H1 and package.json's name still say cs; make them say what this repository is. And src/server.ts (~135) falls back to process.env.HOST for the bind hostname, an ambient variable that can break local startup; bind to what the forge sets (HOST, PORT are the forge's) and nothing else.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs