How I Found Broken Access Control -Then I Stopped Hunting
A cryptocurrency platform's contact feature used a predictable contact identifier that was not tied to the logged-in user, so swapping one user's contact ID into another user's request returned the first user's contact details. The author also noticed an endpoint that appeared to be cached but could not retrieve their own data in a fresh session.
medium.com
Published on medium.com
Before starting, I already believed their security measures would be stringent, but little did I know that nothing is actually secure unless tested.
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
Impact
An authenticated attacker could read other users' contact records by changing the identifier, though the report was closed as a duplicate of an earlier finding.
What the attacker needed
Two free accounts; ability to create contacts
The fix
The text says a fix was still pending in the pipeline, so the server should check that a contact belongs to the requesting account before returning it.
How it was found
- Register an account on the platform and sign in.
- Create a contact and note the contact identifier.
- Log out and sign in as a second account.
- Create a contact as the second user, then replace its identifier with the first user's identifier.
- Observe that the first user's contact is returned.
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 give each item you create, such as a contact, a unique number or code. If the server looks up that item using only the number and never checks that it belongs to the person asking, anyone who changes the number can read someone else's data. This is called broken access control, meaning the site fails to check whether you are allowed to see the thing you asked for.
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.