First Bug, Big Win: How a $100 IDOR Bug Kicked-off My Bug Bounty Journey
A GraphQL query that suggested accounts to follow accepted a client-controlled limit and also returned email addresses when an extra field was requested. An attacker could raise the limit to pull the details and email addresses of every user on the platform.
T2 Social, an upcoming social media platform that could be accessed via https://t2.social is where i got my first bug from.
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 GraphQL resolver trusted the client-supplied limit and exposed the email field without an authorisation check on the requested fields.
Impact
An attacker could retrieve the details and email addresses of all users on the platform, which at the time was around 5,000 accounts.
What the attacker needed
A free account; GraphQL endpoint reachable
How it was found
- Create an account and use the app as a normal user.
- Capture traffic in Burp Suite and find the GraphQL request named fetchNewAccounts.
- Change the limit variable to larger values and observe more accounts returned.
- Add the email field to the request and see email addresses returned.
- Set the limit to 5,000 to retrieve all users' details and emails.
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.
The app had a GraphQL endpoint, which is a way for a front end to ask a server for exactly the data it wants. The server trusted the client to say how many accounts to return and did not check which fields were allowed, so a user could ask for more records and extra private fields such as email addresses.
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.