When A Bug Bounty Turned Into A Real Attack
An API endpoint for account details lacked authentication and used sequential user IDs, allowing an attacker to access any user's account without a password. The researcher reported it, but the company delayed, and attackers exploited it in the wild, compromising over 20,000 accounts.
As a freelance security researcher, I often participated in bug bounty programs—where companies reward ethical hackers for finding vulnerabilities. This time, I was testing a popular e-commerce platform used by over 50,000 businesses.
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 check authentication and used predictable sequential user IDs, enabling enumeration.
Impact
Attackers could access any user's account without a password, view payment histories, and change shipping addresses to reroute orders; over 20,000 accounts were compromised before the endpoint was disabled.
What the attacker needed
No authentication required; Sequential user IDs; No rate limiting
The fix
The company eventually disabled the vulnerable endpoint, but only after nine days and after many accounts were compromised.
How it was found
- Send a request to the account details endpoint with a user ID and a null authorization token.
- Observe that the response contains the user's email, address, and card details.
- Enumerate user IDs to access many accounts.
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 website's API is like a waiter that fetches data when you ask. Here, the waiter would hand over anyone's account details if you simply asked with a guessable number, without checking if you were allowed. This let attackers read private information and change orders for many users.
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.