How I Found 2 IDORS on My Phone and Made $1,500
An API endpoint exposed user data without authentication, and changing a parameter returned other users' information. An attacker could retrieve sensitive personal data such as email addresses, names, phone numbers, addresses, zip codes, and SSNs.
Hey Hackers, this is zack0x01. In today’s article, I’ll share how I found two instances of Insecure Direct Object References (IDORs) on my phone, leading to a bounty of $1,500.
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 API endpoint failed to verify that the requester was authenticated and authorised to access the requested user's data, relying only on a user-controlled parameter.
Impact
An attacker could access sensitive personal information of other users, including email addresses, names, phone numbers, full addresses, zip codes, and SSNs, without authentication.
What the attacker needed
No authentication required; knowledge of API endpoint
How it was found
- Discover API endpoints using tools like Gauplus, Waybackurls, and Waymore.
- Find an API URL with a classKey parameter.
- Open the URL in a browser and observe JSON response containing user data.
- Modify the classKey parameter to retrieve another user's data without authentication.
- Use a script to crawl API paths and filter JSON responses, revealing more private data.
- Create a proof-of-concept website that takes a user ID and displays retrieved data.
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.
An IDOR (Insecure Direct Object Reference) happens when a website uses a simple identifier, like a number in the URL, to decide which user's data to show, but doesn't check if you are allowed to see it. Here, changing a number in the address bar let the author see other people's private details without logging in.
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.