When an Endpoint Enumerator Turned Into a P1 information disclosure bug Here’s What I Found
An API endpoint that lists users returned records for multiple users to any authenticated account, not just administrators. An attacker with a normal account could retrieve other users' email addresses and profile data.
Published on medium.com
Recon doesn’t always need heavy tooling. Sometimes a focused, manual step surfaces issues automated scanners miss.
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 server checked only that the caller was logged in, not whether that caller was allowed to list all users.
Impact
Any authenticated user could read other users' email addresses and profile metadata, which could enable targeted phishing and raises privacy and compliance concerns.
What the attacker needed
A normal authenticated account; access to the web application
The fix
The endpoint should check that the caller is authorised to list users and return only role-appropriate, minimal fields.
How it was found
- Run a browser console script that extracts paths from the page HTML and its scripts.
- Notice a list-style user endpoint alongside the expected personal one.
- Request the list endpoint without logging in and see it refused.
- Create and log into a normal test account.
- Request the list endpoint again and receive an array of other users' records.
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 part its pages talk to behind the scenes. One API address was meant to give a logged-in person their own details, but a similar address handed back a list of many people's details to anyone with an ordinary account. That means a regular user could see other people's email addresses and profile information.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.