Metadata Information Disclosure
An autocomplete search API returned metadata for channels a user had been removed from, because the API did not update its access checks. An attacker could still see the name and metadata of a channel after losing membership.
medium.com
Published on medium.com
وَقُلِ اعْ� َلُوا فَسَيَرَى اللَّهُ عَ� َلَكُ� ْ وَرَسُولُهُ وَالْ� ُؤْ� ِنُونَ) [التوبة:105])
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 autocomplete API cached or failed to re-check channel membership, so it continued returning metadata for channels the user no longer belonged to.
Impact
A user who was removed from a channel could still see that channel's metadata, such as its name, through the autocomplete API.
What the attacker needed
A user account in the web app; membership in a channel; ability to capture and replay API requests
How it was found
- Search in the channel search bar and capture the autocomplete search API request in Burp Suite.
- Send the request and confirm it returns metadata for channels the user is in.
- Add a user to a channel, send the request, and note the normal metadata response.
- Remove the user from that channel and send the request again; the API still returns the channel.
- Edit the channel name and send the request again; the changed name is returned, showing the data is live.
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 web app lets people search inside chat channels. The search API was supposed to only show channels you belong to, but after you were removed from a channel it still showed that channel's details. This is an access-control mistake: the server kept giving out information it should have stopped sharing.
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.