Summary
A Flask-based "ransom portal" game exposed a client-side-only anti-cheat mechanism: the score-verification HMAC secret was shipped in plaintext JavaScript, allowing a forged "winning" score to be submitted directly to the API. This unlocked a /vault page containing a household file-recovery form vulnerable to OS command injection, which ran as a low-privileged relay user. A hardcoded operator password-rotation scheme (derived from the hostname plus a leaked salt found in a comment) allowed escalation to the operator user. Finally, a root-owned background process that executed any operator -owned file dropped into operator 's maintenance directory allowed trivial privilege escalation to root.
Attack chain: client-side HMAC bypass -> command injection -> reverse shell as relay -> hardcoded/derivable operator password -> su operator -> unsafe root-owned task-runner -> root.
1.…