Skip to content
Access control Disclosed report Intermediate

Privilege Escalation leading to post in channel without having privilege

A channel owner could remove members' permission to post in a channel, but a member could still post by replaying a previously captured request from a channel where posting was allowed. This let a user without posting rights comment in a read-only channel.

fuzzsqlb0f Follow

Originally disclosed on HackerOne

  • Triaged in 45 hours
  • Fixed in 2 months
  • Paid in 8 days
  • Disclosed after 6 months

Hi H1,

mattermost.cloud has a feature of making a channel and once its set to public any other user can join the channel and post comments on that channel. In System Console --> Channel --> Permission channel owner can assign wether member can post comment or not. Once channel owner selects that channel member can not post even than they can post the comment in channel.

Steps To Reproduce:

  • Step1: user1 █████ created a channel which is public and under System Console --> Channel --> Permission gives guest and members to post comment.

  • Step2: user2 █████ joined user1 channel mikefourchannel (already joined)

  • Step3: user2 posted comment has permission to comment in channel in mikefourchannel and captured the request and send it to repeater (

  • Step3: user2 ███████ also created a channel privilegeescalation (already done)

  • Step4: user1 █████ and under System Console --> Channel --> Permission guest and members removes right to comment.

  • Step5: user2 ████████ now can not post any comment This channel is read only. Only members with permission can post here

  • Step6: user2 ██████ goes to channel privilegeescalation and posted comment and captures the request and used post request which was captured in Step3

Note: In video POC at time 0:01:42 user2 commenting when he was having privilege of commenting in channel and there is only that comment has permission to comment in channel below there is no other comment now plz go to time 0:04:29 you can see user2 commented commenting in mike4 channel even no privielge in user1 channel without proper privileges

Video POC attached for your reference.

Result:

user2 ███ posted comment in user1 channel mikefourchannel even user2 dosen't have privilege to do so.

Impact

Impact:

Privilege escalation leading to comment on channel.

The original report as published on HackerOne, by fuzzsqlb0f. 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 server did not re-check the channel's posting permission on each request, so a request captured while posting was allowed could be replayed after the permission was removed.

Impact

A user without posting permission could post comments in a read-only channel, which the reporter describes as privilege escalation.

What the attacker needed

Two user accounts; a public channel; ability to capture and replay requests

How it was found

  1. User1 creates a public channel and allows guests and members to post comments.
  2. User2 joins that channel and posts a comment, capturing the request.
  3. User1 removes the right for guests and members to post comments.
  4. User2 can no longer post normally and sees a read-only message.
  5. User2 goes to another channel and replays the earlier captured post request.
  6. The comment appears in User1's channel despite the removed permission.

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.

In a chat app, an admin can make a channel read-only so members cannot post. The reporter found that a member could reuse an old saved request from a channel where posting was allowed, and it still worked.

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 fuzzsqlb0f

View all

2 more disclosed reports, best first.

More from Mattermost

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.