How I Found a PII Leak Using BAC and Got $$$
A backend endpoint that returned a project owner's personal details only checked that the caller was logged in, not what role they held. Any Developer on a project could replay the request with their own token and receive the owner's full name, personal email and home address.
medium.com
Published on medium.com
Hello Friend , I’m Thomas Youssef — back again with another writeup. This one is about a BAC bypass that ended up leaking the project owner’s name, email, and home address to anyone on the team.
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
The backend route handler had no role guard attached to it, so authentication was checked but authorization was never enforced.
Impact
A low-privilege team member such as a short-term freelancer could silently obtain the project owner's full legal name, personal email and home address, which is enough for targeted phishing, social engineering or identity fraud.
What the attacker needed
A valid account on the platform; membership of the target project as Developer; the project identifier, visible in the URL
The fix
The endpoint should have a server-side role guard restricting it to owners and admins, since the frontend is not a security boundary.
How it was found
- Log in as an Admin with an intercepting proxy and open the billing section to capture the request that loads owner details.
- Note that the project identifier in the query string is visible in the browser address bar to every team member.
- Log in as a Developer and obtain that account's token.
- Replay the captured owner-details request with the Developer token in place of the Admin token.
- Observe that the server returns the owner's name, email and address instead of a forbidden response.
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 has two jobs when someone asks for data: checking who you are (authentication) and checking whether you are allowed to see that particular thing (authorization). Here the server only did the first job. A low-privilege team member could ask the server directly for the owner's private details and the server handed them over, even though the website's buttons hid that information.
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.