It Took Me 10 Minutes to Find an BAC Vulnerability $$$ That Expos
An API endpoint that returned the current user's profile could be changed to a listing endpoint that returned every registered user's personal data. Any authenticated user could enumerate and read all other users' details.
Published on medium.com
Hello Guys Myself Mufiz a bug hunter , red teamer , and a Btech student this is a short intro if u wanna get connected and know much about me and my articles do visit My Linkdin www.linkedin.com/in/mufij-topinkatti-610457241 Thanks .
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 listing endpoint lacked an authorisation check, so any authenticated user could retrieve the full user collection.
Impact
Any authenticated user could enumerate and access all other users' data, enabling targeted phishing, impersonation and scraping, and likely breaching privacy rules such as GDPR and CCPA.
What the attacker needed
A free account on the target
The fix
The endpoint should enforce role-based access control and permission checks at both the controller and business-logic layers, restricting user listings to authorised roles.
How it was found
- Log in and browse the profile and account settings features while capturing requests.
- Notice the request that fetches the current user's profile.
- Remove the 'current' segment from the path and resend the request.
- Observe that the response contains personal data for all registered users.
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's API is the set of URLs its pages use to fetch data. One URL was meant to return only your own profile, but a similar URL returned everyone's profile to anyone logged in. That is a broken access control bug: the server did not check whether you were allowed to see the list.
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.