Creating Post on a restricted channel
A team member without permission to post in a restricted public channel could bypass the restriction by intercepting a command-post request and changing the channel ID to the restricted channel's ID. The attacker could then create a post in a channel where the admin had denied posting rights.
Originally disclosed on HackerOne
- Triaged in 6 days
- Fixed in 7 days
- Paid in 7 days
- Disclosed after 2 months
Hi,
I would like to report a privilege escalation issue in which a member of the team is able to create a post on a channel even if the permission to do so is denied to him by the admin.After the admin has limited the number of users who can post to a specific public channel,an unauthorized user who does not have sufficient authority to post anything on it is able to create the post based on commands available to him.I have attached a POC for further clarification.
The admin in this case has denied the team members from creating any posts on the general channel. In order to bypass this restriction,login as a team member, and create a command post on any channel and intercept the request. Modify the request by changing the channel ID( replace it with the channel ID of general ) and send the request. We get the success message and on the channel also we can see that the post has been created.
Steps to reproduce: 1.Login as team member. 2.Create a command post on any public channel. 3.Intercept the request. 4.Replace the channel ID in the request with the one of general channel.
Let me know if any other help is needed.
Thanks, Harsh.
Attachments
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
Impact
A team member could create posts in a public channel where the admin had explicitly denied posting rights, bypassing the restriction.
What the attacker needed
A team member account; admin has restricted posting in a channel; ability to intercept requests
How it was found
- Log in as a team member.
- Create a command post on any public channel.
- Intercept the request.
- Replace the channel ID in the request with the ID of the general channel.
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 team member was not allowed to post in a certain channel. By changing the channel ID in the request, the user could post in the forbidden channel anyway. This is a privilege escalation.
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.