Game of Hacks: Play, Hack & Track
summary
A Node.js web game shows code snippets, a timer and a leaderboard and draws 35K players in 24 hours, then records how players break it: client-side timer pausing and iPhone touch-stall, answers replayed to inflate scores, negative-number scoring, and exploitation of JSON inputs with JSON injection using $gt and regex-heavy fields to trigger CPU-bound denial-of-service. The build uses an event-loop single-threaded Node architecture; fixes include server-side timing and per-question flags, plus input length/regex validation and moving CPU work off the main loop.
AI-written summary · about
chapters (9)
- 0:00Introduction to Game of Hacks
- 1:37Origins and purpose of Game of Hacks
- 3:08How the game works and features
- 8:33Live demo and T-shirt contest
- 14:34Security vulnerabilities in the game
- 21:22Node.js performance pitfalls
- 25:18Jason injection vulnerabilities
- 29:26Key takeaways and education tips
- 30:56Q&A session
