Skip to content
Business logic Write-up Beginner

Leveling Up the Wrong Way: Exploiting API Vulnerabilities in Game Progression

The game's user-data endpoint returned progression values such as level and power that the client could edit, and a separate save endpoint then persisted those edited values. An attacker could raise their own level and stats without playing, and the change survived reloading the game.

aminudin Follow

Published on aminudin.medium.com

Jadi kali ini saya memainkan game berbasis web3 untuk mendapatkan Airdrop nantinya, dan game ini bergenre RPG. Di game ini kalian harus menyelesaikan misi dan menaikan level.

Aminudin, on aminudin.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 accepted client-supplied progression values in the user-set request without validating them against server-side state.

Impact

A player could set their own level and stats to arbitrary values, gaining progression and rewards without playing.

What the attacker needed

A game account; a proxy tool such as Burp Suite

How it was found

  1. Intercept the user-get response with a proxy.
  2. Change the level value in the response.
  3. Forward the request so the game shows the new level.
  4. Wait for the user-set request to be sent so the value is saved.
  5. Close and reopen the game to confirm the value persists.

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.

A game usually keeps your progress on its server, but here the server trusted numbers the browser sent back. By intercepting the traffic with a proxy tool and changing the level number in the response, the player made the game believe they had a higher level, and the save request stored it. This is a problem because the server should decide your progress, not the client.

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.

More by aminudin

View all

2 more disclosed reports, best first.

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.