Skip to content
Business logic Write-up Beginner

Breaking the Game: Score Manipulation and Leaderboard Takeover

The game's finish endpoint accepted a client-supplied final score and game identifier, so a player could submit any score they wanted. An attacker could create a match and then finish it with an arbitrary score, taking the top spot on the leaderboard.

medium.com

Published on medium.com

Sama seperti sebelumnya disini saya mau membagikan gimana cara saya memecahkan top leaderboard agar menjadi yang pertama di sebuah web3 game!, ok langsung saja.

Aminudin, on medium.com

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

Root cause

Likely the server trusted the score value sent by the client in the finish request instead of calculating or validating it server-side.

Impact

A player could submit an arbitrary score and take the top position on the leaderboard.

What the attacker needed

A player account in the web game; ability to send requests to the game API

How it was found

  1. Look at the game's HTTP requests while playing and notice the finish endpoint.
  2. Observe that the finish request carries the final score and the game id.
  3. Note that a match is first created via the matches endpoint, which returns a match id.
  4. Request the matches endpoint with the chosen game id to create a match.
  5. Request the finish endpoint with that match id and a chosen score.
  6. See the submitted score reflected on the leaderboard.

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 an online game, your browser sends messages to the game's server, such as 'I finished this match with this score'. Here the server trusted that message completely instead of working out the score itself. So anyone who can send the same message can claim any score they like and appear at the top of the leaderboard.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.