Bug Bounty desde Cero: De la Curiosidad al Primer Hallazgo
An API endpoint returned another user's details when the numeric user ID in the path was changed, without checking whether the requester was allowed to see that data. An attacker could read other users' information by swapping IDs.
Published on medium.com
Empezar en Bug Bounty es como querer hackear un laberinto con miles de puertas… y sin saber si hay una recompensa detrás. En esta guía te comparto lo que aprendí (y sigo aprendiendo) para pasar del “no entiendo nada” al “¡reportado y pagado!”.
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 looked up the record by the ID supplied in the request but never checked that the logged-in user owned or was permitted to view that record.
Impact
Any user could read other users' details by changing the ID, and the report says it was validated and paid.
What the attacker needed
An account on the API; knowledge of another user's ID
How it was found
- Request the details endpoint for your own user ID.
- Replace the ID in the path with a different number.
- Observe that the API returns another user's information.
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.
Many websites put a number in the address to say which record to show, for example which user profile. If the site does not check that you are allowed to see that record, you can simply change the number and read someone else's data. This is called an IDOR, short for Insecure Direct Object Reference.
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.