Eavesdropping on private Slack calls
Slack's call invite endpoint allowed any team member to add themselves to a private ongoing call by replaying a modified invite request with the victim's room ID and their own user ID. An attacker could then eavesdrop on or participate in private conversations between co-workers.
- Triaged in 7 days
- Fixed in 47 days
- Paid in 44 days
- Disclosed after 3 months
A vulnerability exists in Slack's call functionality that allows a team member to eavesdrop on private ongoing Slack calls by inviting themselves into the conversation without the permission from either participant. By doing so they can eavesdrop on co-workers' private conversations as well as taking part in these conversations. To make the attack less obvious, the attacker could re-use Slackbot's avatar and choose a username that is similar to Slackbot. Another scenario would be to pick the avatar of the person you want to impersonate and choose a username that is similar to theirs.
Setup
Before trying to reproduce the vulnerability, make sure you have the following:
- Slack Calls should be enabled in your Slack instance.
- Have at least two accounts you control. One we will call the Main Account, the other one we will call the Eavesdropper Account.
- Have at least two accounts you do not control on the same Slack instance. They will be used to mock the situation of two co-workers having a private Slack call.
- For easy reproduction, it is advised to initiate the call from a web browser rather than a native app.
- Make sure to have some type of intercepting proxy running that allows you to record HTTP requests and replay them easily.
Steps to Reproduce
Obtaining the vulnerable request
First off, we are going to obtain the exact request to the endpoint that contains the vulnerability (/api/screenhero.rooms.invite). This will be needed to later on modify and add Eavesdropper Account to the private call.
Set up a call and invite someone to the call. Make sure to capture the request to /api/screenhero.rooms.invite and save it so you can replay it easily later. The request should look something like:
POST /api/screenhero.rooms.invite?_x_id=91700980-1479951838.521 HTTP/1.1
Host: hackerone.slack.com
Origin: https://hackerone.slack.com
X-Slack-Version-Ts: 1479949022
[...]
is_video_call=false&responder=U0254GYNR&room=R36L2K8P6&set_active=true&should_share=true&token=<snip>
Staging the attack environment
Start by setting up a 1:1 call between two users (both accounts you don't necessarily have control over). This is to mock a situation where two co-workers are on a private 1:1 Slack call.
Note the Screenhero room ID of the call. You will need this later. In this scenario, I am going to assume the attacker is already in possession of the room ID. The room ID can be recognized by the ID after /call/ in https://hackerone.slack.com/call/R36L2K8P6 (an example).
Pulling off the attack
Take the request you saved earlier, and now modify the request as follows:
- change the value of the
roomparameter to the room ID you noted from the previous step - change the value of the
responderto the user ID of Eavesdropper Account. The reason why this can't be your own user ID (Main Account) is that you're not allowed to inviteself.
After these changes, forward the request and wait for a call on Eavesdropper Account. When you accept this call, you will be placed into the private conversation the two victims were having.
Let me know if there's anything else you need to validate this issue.
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 call invite endpoint lacked authorisation checks to confirm the requester was a participant of the target room and permitted to invite users.
Impact
An attacker could eavesdrop on private calls between co-workers and take part in those conversations, potentially impersonating another user by reusing their avatar and a similar username.
What the attacker needed
Slack Calls enabled in the workspace; Attacker is a member of the same Slack instance; Attacker knows the target call room ID; Ability to intercept and replay HTTP requests
How it was found
- Set up a call and invite someone, capturing the request to the invite endpoint.
- Start a 1:1 call between two other users and note the room ID from the call URL.
- Modify the saved request: set the room parameter to the victim's room ID and the responder to the attacker's user ID.
- Forward the modified request and accept the incoming call on the attacker account to join the private conversation.
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.
Slack calls have a room ID that identifies the conversation. By changing the room ID and the user ID in a saved invite request, an attacker could join a private call they were never invited to.
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.