Discovering private chats between users and the support team
Two support-chat endpoints identified users and tickets by sequential numeric IDs and failed to check the session cookie, so removing the cookie let anyone read any user's support conversations and attachments. An attacker could enumerate user and ticket IDs to access private chats and screenshots.
Greetings, Bug Bounty community! I'm Krishna Jaishwal, also known as jarvis0p, a Computer Science student and bug bounty hunter.
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 endpoints relied on user-supplied numeric IDs for authorisation instead of validating the session, and the IDs were sequential and guessable.
Impact
An unauthenticated attacker could read any user's complete support chat history and attachments, limited only by the ability to guess or fuzz the numeric IDs.
What the attacker needed
No account needed; knowledge of a user ID; guessable ticket ID
The fix
The endpoints should authorise requests using the session rather than user-supplied IDs, and use strong non-sequential identifiers such as UUIDv4; the report says the issue was fixed immediately after triage.
How it was found
- Create a support ticket and observe the request that loads the chat, which contains a user ID and a ticket ID.
- Try changing the user ID and ticket ID to another account's values; the server returns 403 Forbidden.
- Remove the cookie header completely from the request; the chat loads successfully.
- Find another user's user ID via an endpoint that maps username or channel name to user ID.
- Fuzz the ticket ID with ffuf, since this endpoint had no rate limiting, to find other users' tickets.
- Open the found tickets to read chats and use the attachment endpoint without a cookie to fetch attachments.
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 support ticket is a private conversation between a user and the support team. The website used simple numbers to identify each user and ticket, and it did not check whether the person asking was logged in. By guessing those numbers, anyone could read other people's private support chats and attached screenshots.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.