Autotranslate DDP Method Exposes Private Messages Without Authentication or Room Access Check
The Rocket.Chat DDP method autoTranslate.translateMessage accepted a client-supplied message object and translated it without checking the caller's identity or room membership. Any authenticated DDP user could read the content of any message by its ID, including private channels, direct messages and E2EE rooms.
- Triaged in 11 hours
- Fixed in 4 days
- Disclosed after 11 days
Summary by the program
The Rocket.Chat DDP method autoTranslate.translateMessage accepts a client-supplied IMessage object and passes it directly to translateMessage() without checking Meteor.userId() or verifying room membership. Any authenticated DDP user can read the content of any message by ID from any room (private channels, DMs, E2EE rooms) by calling this method. The parallel REST endpoint was fixed with canAccessRoomAsync but the DDP method was missed.
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 DDP method passed a client-supplied message object straight to the translation function without checking the logged-in user or verifying room membership, unlike the REST endpoint which had been fixed with a room access check.
Impact
An authenticated user could read message content from private channels, DMs and E2EE rooms they had no access to.
What the attacker needed
An authenticated DDP account; knowledge of a message ID
The fix
The DDP method should be fixed by adding the room access check (canAccessRoomAsync) used on the REST endpoint.
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.
Rocket.Chat lets users talk in rooms, some of which are private. A server function that translates messages was trusting the caller to say which message to translate, and it never checked whether that caller was allowed in the room. So anyone with a normal account could ask it to translate a message from a private room and read the reply.
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.