How Getting Mogged Made Me Find a Client-Side Score Manipulation
The match finalisation endpoint accepted client-supplied scores and a score cap without server-side validation, allowing a player to rewrite the request and always win. An attacker could manipulate their ELO rating and leaderboard position by altering the outgoing score values.
Published on medium.com
I lost mogoff after mogoff. I’m not going to pretend I handled it well.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could consistently win matches and inflate their ELO rating, undermining the integrity of the leaderboard.
What the attacker needed
A free account; ability to intercept HTTP traffic
The fix
The finalize endpoint should accept only a match or session ID and compute the result server-side, or validate client-submitted scores against an authoritative record.
How it was found
- Observe the POST request to /api/match/finalize at the end of a match.
- Set up Burp Match and Replace rules to rewrite selfScore, scoreCap, and opponentScore in the outgoing request.
- Play matches; the modified request is sent automatically and the server accepts it.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When you play a game online, your device sends the result to the server. Here, the server simply believed whatever score the player's device sent, instead of checking the result itself. That meant a player could change the numbers before they were sent and always appear to win.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.