Skip to content
IDOR Disclosed report Beginner

IDOR vulnerability leads to Deleting message after leaving/getting banned from group using message ID

A user who left or was banned from a channel could still delete their own messages by calling the delete-message API directly with the message ID, even though the interface no longer offered that option. This let a removed user erase evidence of their violations.

yash24 Follow

Originally disclosed on HackerOne

  • Triaged in 3 days
  • Fixed in 15 months
  • Disclosed after 16 months

Steps:

First send a message to the channel and capture its request:

image.png
image.png From the original on HackerOne

Endpoint: /api/v1/method.call/sendMessage

CZZqd6rMsiqbsqa9h is the message ID that will be used later to delete the message to this ID.

Leave the channel.

Now, don’t join the channel again, just try to see options available that you can do to your message, you will see that you can’t delete this message after leaving or getting kicked from the channel.

But this can be bypassed through the DeleteMessage API call.

Try to delete your message in some other channel and capture its request as shown in the screenshot below:

image.png
image.png From the original on HackerOne

Endpoint: /api/v1/method.call/deleteMessage

Now, change the id to CZZqd6rMsiqbsqa9h and forward the updated request.

image.png
image.png From the original on HackerOne

It successfully deleted the message.

image.png
image.png From the original on HackerOne
image.png
image.png

Impact

The impact is that a user can still delete the messages after getting banned/muted from the channel and leaving no evidence of his/her violations. This must be strictly restricted.

Attachments

image.png
image.png From the original on HackerOne

The original report as published on HackerOne, by yash24. 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 delete-message endpoint checked only that the caller owned the message, not that the caller was still a member of the channel.

Impact

A banned or departed user could still delete their messages, removing evidence of their violations.

What the attacker needed

A user account; membership of the channel; ability to capture and replay requests

The fix

Deletion after leaving or being banned should be strictly restricted.

How it was found

  1. Send a message to the channel and capture the request, noting the message ID.
  2. Leave the channel.
  3. Confirm the interface no longer offers a way to delete the message.
  4. Capture a delete-message request from another channel.
  5. Replace the message ID with the earlier one and send the request, which deletes the message.

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.

When you leave or are removed from a group, the app hides the delete option for your old messages. But you could still send a delete request yourself using the message ID, so a removed user could wipe their messages and hide what they had done.

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.

More from Rocket.Chat

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.