From Low Bug to $1000 Bounty — The Privilege Escalation Playbook Every Hacker Should Know
An API endpoint that returned account data by user ID did not check ownership, and a profile update endpoint accepted a user-supplied role field without server-side authorisation. By changing the ID and then the role value, the author could read another user's data and promote their own account to admin.
osintteam.blog
Published on osintteam.blog
Most beginners don’t fail because they’re not skilled. They fail because they stop too early.
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 missing server-side authorisation checks: the API trusted user-controlled identifiers and the role field instead of verifying ownership and permitted values.
Impact
The author could read other users' data and gain admin access to the dashboard, user database and account management, which could lead to data breach and account takeover.
What the attacker needed
A free account; ability to intercept API requests
The fix
The API should enforce server-side authorisation on every object reference and reject or ignore user-supplied role changes.
How it was found
- Map the application's roles, API endpoints and parameters.
- Capture an account request containing a user ID and change the ID to another user's.
- Observe that another user's data is returned without an ownership check.
- Capture the profile update request and change the role value from user to admin.
- Observe that the request is accepted and the account becomes admin.
- Verify impact by accessing the admin dashboard and user database.
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 application programming interface (API) is the part of a site that apps talk to directly. Here the API trusted whatever user ID or role value the client sent, so changing a number or a word in the request let the author see someone else's data and give themselves admin rights. Admin rights usually mean full control over other users' accounts.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.