Critical IDOR Vulnerability Leads to User Information Disclosure
A chatbot conversation API returned full chat data when given only a conversation identifier, without checking who was asking. An attacker could read other users' conversations, including names, email addresses and IP addresses.
In this blog, I will share how I discovered a critical IDOR vulnerability that exposed sensitive user information through a chatbot API.
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 conversation endpoint lacked any authentication and object-level ownership check, so possession of the identifier was treated as sufficient authorisation.
Impact
An unauthenticated attacker could read private conversations and personal data such as names, email addresses and IP addresses, and could scrape them at scale, which the author rates as high severity.
What the attacker needed
Knowledge of a conversation identifier; no account needed
The fix
The endpoint should require authentication and verify that the requester owns the conversation before returning any data.
How it was found
- Open the target page that hosts the chatbot and start a new conversation.
- Capture the network traffic with a proxy or browser developer tools and note the conversation identifier.
- Send a request to the conversations endpoint for that identifier without any authentication.
- Observe that the response contains the full conversation and visitor details.
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.
An identifier is a label the app uses to find a record, like a ticket number. Here the server handed over the whole chat just because someone knew the label, without asking who they were. That is called an IDOR: the app trusts the label instead of checking permission.
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.