Skip to content
Access control Disclosed report Intermediate CVE-2023-28325

Moving private messages into vision with updateMessage method

The updateMessage Meteor method lacked proper permission checks on the 'rid' parameter, allowing an attacker to edit messages without authorisation. This could be exploited to leak private messages when the message ID is known.

gronke Follow

Originally disclosed on HackerOne

High 7.1 View original
  • Triaged in 47 days
  • Fixed in 18 months
  • Disclosed after 18 months

Summary by the program

A vulnerability has been discovered in the updateMessage Meteor Method, allowing adversaries to edit messages without proper authorization. This occurs due to insufficient permission checks for the "rid" parameter. Attackers can exploit this issue to leak private messages with known message IDs.

The original report as published on HackerOne, by gronke. 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 updateMessage method trusted the 'rid' (room ID) parameter without verifying that the caller had permission to modify messages in that room.

Impact

An attacker could edit messages without authorisation and could leak private messages when the message ID is known.

What the attacker needed

Knowledge of a 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.

A Meteor method is a server-side function that clients can call. The updateMessage method let a user change a message, but it did not check whether that user was allowed to change messages in that room. Because of this, someone could change a message they should not touch and possibly read private messages if they knew the message's ID.

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 by gronke

View all

27 more disclosed reports, best first.

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.