Skip to content
Access control Disclosed report Intermediate CVE-2026-65645

DDP methods getThreadsList / getThreadMessages leaks private thread content to any authenticated low privilege user (unpatched sibling of #1446767)

The DDP methods getThreadsList and getThreadMessages accept untyped rid and tmid parameters, so a MongoDB operator object can be substituted for a string. The authorization check resolves to a room the attacker can access while the data query fans out across all rooms, disclosing private thread parents and replies to any low-privilege authenticated user.

iamaangx028 Follow

Originally disclosed on HackerOne

  • Triaged in 21 days
  • Fixed in 43 days
  • Disclosed after 43 days

Summary by the program

The Meteor DDP methods getThreadsList and getThreadMessages accept rid / tmid as raw, untyped parameters with no schema validation. A MongoDB operator object (e.g. {"$gt": "4"}) can be substituted for a string room-id or message-id. The authorization check resolves to a room the attacker already has access to, while the downstream data query fans out across all rooms - disclosing private thread parents and their full reply content to any low-privilege authenticated user. The REST route chat.getThreadsList was patched in v5.0 (HackerOne report #1446767) by adding rid: {type:'string'} AJV validation. The equivalent DDP method was never given the same fix and remains exploitable

The original report as published on HackerOne, by iamaangx028. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Likely the DDP methods lack the AJV schema validation that was added to the equivalent REST route, so untyped parameters reach the database query and the authorization check and data query resolve different rooms.

Impact

Any authenticated low-privilege user could read private thread parents and their full reply content from rooms they do not belong to.

What the attacker needed

A low-privilege authenticated account

The fix

The DDP methods should be given the same string-type validation on rid and tmid that was applied to the REST route.

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.

The server has two methods that look up chat threads. They trust whatever value the caller sends for the room or message identifier instead of checking it is a plain string. By sending a special database query object instead of a string, an attacker can make the lookup match many rooms at once, including private ones they were never allowed to see.

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.

More from Rocket.Chat

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.