How I Got $3K by Breaking User Accounts via IDOR & Logic Flaw [C
An onboarding-step endpoint accepted a user identifier from the request without checking ownership, so any logged-in user could change another user's onboarding progress. Setting the step to an invalid value such as zero left the victim's account stuck in an endless redirect loop after login, effectively soft-locking it.
Published on matrixm0x1.medium.com
It’s been a while since I posted a write-up, but I’m back. finally decided to share a bug bounty story that ended up earning me $3,000 on a program I’ll call example.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 endpoint authorised the request only by the bearer token's validity and never checked that the token's owner matched the user_id in the path, and it also accepted an out-of-range step value without validation.
Impact
Any logged-in user could alter another user's onboarding state, and by setting an invalid value could soft-lock the victim's account in an endless redirect loop with no self-recovery, though it did not escalate to account takeover.
What the attacker needed
A free account on the platform; victim's user ID is guessable; attacker has a valid session token
How it was found
- Sign up and log in to the platform, then go through the multi-step onboarding process.
- Notice the PUT request to the applicant onboarding-step endpoint and find the same path referenced in the JavaScript bundle.
- Intercept the request, replace your own user ID with a victim's ID, and resend it; the server returns 200 OK.
- Check the victim's session and see their onboarding progress has changed.
- Send the same request with the step value set to zero.
- Log in as the victim and observe the page redirecting to the onboarding page in an endless loop.
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 trusts an identifier sent by the user, such as a user ID in the URL, and does not check that the person making the request is allowed to touch that record. Here the attacker swapped their own user ID for someone else's and the server happily updated the other person's onboarding progress. Sending a nonsense value then broke the victim's login flow so badly that the page kept reloading and they could not use the site.
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.