I got €€ for finding a bug that others missed
A viewer-level account could call an API endpoint with its own token and receive the full admin profile, including a sensitive phone number. An attacker with a low-privileged account could therefore read data belonging to a higher-privileged user.
medium.com
Published on medium.com
I was hunting on a self-hosted program and trying to understand the application as it was a sass platform.
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 checked that a request was authenticated but did not check the caller's role or that the requested profile belonged to the caller.
Impact
A low-privileged user could read another user's profile data, including a phone number, though the report does not show what else the endpoint exposed.
What the attacker needed
A valid low-privileged account; an invitation from an admin
How it was found
- Log in as an admin and invite a new user with the Viewer role.
- Accept the invitation and complete sign-up for the new account.
- Confirm the new account has the Viewer role and cannot see admin details in the interface.
- Copy the authorisation token for the viewer account from browser local storage.
- Send a request to the API using the viewer token.
- Observe that the response contains the full admin profile, including a phone number.
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 gives each logged-in user a token, a long string that proves who they are. The server is supposed to check not just that the token is valid but also what role that user has. Here it only checked the token, so a low-privileged user could ask for another user's profile and get it.
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.