IDOR: autotranslate.translateMessage Full Message Content Leak
The autotranslate.translateMessage API endpoint returned the full content of any message to any authenticated user who supplied a message ID, without checking whether that user could access the message's room. An attacker could read private group, direct message and channel content by guessing or obtaining message IDs.
Originally disclosed on HackerOne
- Triaged in 8 days
- Fixed in 9 days
- Disclosed after 13 days
Summary by the program
The /api/v1/autotranslate.translateMessage endpoint allows any authenticated user to retrieve the full content of any message from any room (private groups, direct messages, channels) by simply providing the target message ID. The endpoint fetches the message via Messages.findOneById(messageId) with no room access check (canAccessRoomIdAsync is never called), returning the complete IMessage object including message text, sender info, room ID, timestamps, and markdown content.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The endpoint fetched the message by ID and returned it without performing a room access check.
Impact
Any authenticated user could read the full content of messages in private groups, direct messages and channels, including sender details and timestamps.
What the attacker needed
An authenticated account; knowledge of a target message ID
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 report has not been written yet. The Original tab links to the source.
Every message in a chat app has a unique identifier. This endpoint looked up a message by that identifier and sent it back, but never checked whether the person asking was allowed to see that room. So anyone with a login could read other people's private conversations if they knew or guessed an identifier.
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.