Found: an IDOR in a Game Full of Hunters
An API endpoint returned the password of any private group when called with that group's ID, without checking whether the caller was a member. An attacker could list all group IDs and then retrieve private group passwords to join groups they were not invited to.
medium.com
Published on medium.com
Hi — I’m file.bug. Today I’ll show how I discovered a simple IDOR on a game that allowed me to join private groups.
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 group-details endpoint looked up the group by the ID supplied in the request and returned its password without verifying that the requester was a member of that private group.
Impact
An attacker could obtain the passwords of private groups and join them without an invitation, though the text notes there is no direct interaction between players and only a leaderboard is affected.
What the attacker needed
A free account; knowledge of a group ID
How it was found
- Create a private group with a known password, then leave it.
- Use the group search endpoint to find the group's ID.
- Call the group-details endpoint with that ID and observe the password returned.
- Use the returned password to join the private group.
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 group on this game can be private and protected by a password. The website had a page that showed a group's details, and if you changed the group number in the address it would also show that group's password, even if you were not a member. This is called an IDOR: the site trusts a number you supply without checking you are allowed to see what it points to.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.