Skip to content
Business logic Write-up Intermediate

[1500$ Worth — Slack] vulnerability, bypass invite accept process

Slack's invite system allowed an attacker to add a victim to their workspace without the victim accepting the invite by changing the victim's role after inviting them. This let the attacker interact with the victim and bypass invite restrictions.

Sirat Sami Follow

Published on medium.com

Bounty$1,500 View original

Slack has a public bug bounty program on HackerOne platform, its released since 2014, I have never used slack before I look for bugs in slack, but once I saw how it works, I noticed that’s the target I was looking for, for long time.

Sirat Sami (analyz3r), on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

Slack runs a public bug bounty programme on HackerOne, open since 2014. The feature in scope here is workspace user management: an owner or admin can invite people to a workspace by email address, and Slack lets users restrict who may invite them. Normally a person cannot be added to a workspace directly; they receive an invite and have to accept it, and if they have blocked invites from a given user, they will not even receive them.

The researcher had not used Slack before and chose it as a target because of how the invite flow works. With prior experience in invitation functions, the focus was on the invite logic itself: understanding how Slack tracks an invited user, and whether anything can be done with that user before they accept.

Setup

Two accounts are needed:

  1. An attacker account that owns a workspace, or has enough permission in one to manage users.
  2. A victim account, which is invited by email address and never interacts with the invite.

No special tooling is described. The work is done through the normal Slack user management interface and by logging in to the victim account to observe the result.

Finding it

When a user is invited by email address, the users management page shows their account type as Invited member. That reflects the expected state: the person has been invited but has not accepted.

While experimenting with the invited user, the researcher changed that user's role to admin. The account type in the management page changed from Invited member to Workspace Admin. That alone did not seem significant.

The interesting behaviour appeared on the way back. Changing the invited user's role from Workspace Admin to Full member should, by expectation, have returned the account type to Invited member. Instead the account type became Full member. The invited state had disappeared entirely, even though the victim had never touched the invite.

Exploitation

Step 1: Prepare the workspace

As the attacker, you need a workspace and sufficient permission to manage users. This is the precondition for everything that follows.

Step 2: Invite the victim

The attacker invites the victim by email address. At this point the victim appears in user management as Invited member, and the victim receives an invite email.

Step 3: Leave the invite untouched

The victim does not need to interact with the invite email at all. No click, no acceptance, nothing on the victim side is required for the flaw to work.

Step 4: Change the victim's role

As the attacker, change the invited user's role to another role, such as workspace admin, and then change it back to full member. After this, the victim's account type in the management page is Full member rather than Invited member.

Step 5: Log in as the victim

Logging in to the invited member's account, the attacker's workspace is listed among the workspaces the victim has joined. In other words, the victim has been added to the attacker's workspace without ever looking at the invite.

Root cause

The report describes this as a logical issue that lets an attacker trick Slack into treating the user as a joined member rather than an invited member.

The report does not explain why the invited state is not restored; it only notes that the account type changed to Full member.

Impact

An attacker can bypass the invite accept process for invited victims. This lets the attacker interact with the victims, for example by chatting with them, calling them or sending them notifications.

It also bypasses invite restrictions: if the victim has already blocked the attacker's invites, the attacker can still get them into the workspace this way.

The bounty awarded was 1500 USD.

Fix

The report does not describe any fix or the change Slack made.

Variants to test

  1. Other role transitions. On a similar product, invite a user, move them through every available role and back, and check whether the account type ever leaves the invited state. A positive result is an invited user showing as a full member without accepting.
  2. Other management actions on invited users. Try actions such as deactivating and reactivating, moving between channels or groups, or editing profile fields on an invited account, then check the account type. A positive result is any action that turns an invited member into a joined member.
  3. Blocked invites. With a victim account that has blocked invites from the attacker, repeat the invite and role change. A positive result is the workspace appearing in the victim's workspace list despite the block.
  4. Invite by other identifiers. If the product supports inviting by username, user ID or link rather than email, repeat the flow and watch the account type. A positive result is the same transition from invited to joined without acceptance.
A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store From the original on medium.com
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 8 min read.

What happened, in plain words

Slack is a messaging app for teams. You create a workspace (a shared space for a group, like a company or a club), and you invite other people to join it. Normally, when you invite someone by email, they get an email with a link, and they have to click it and accept before they become a member. Until they accept, Slack shows them in your user list as an "Invited member". Also, Slack lets each person decide whether they want to receive invites from others; if someone has blocked invites from you, you cannot even send them one.

The researcher found a way to skip that acceptance step. If you invite someone and then change their role (for example, make them an admin, then change them back to a regular member), Slack forgets that they were only invited. The person is then treated as a full member of your workspace, even though they never accepted the invite. This means you can add someone to your workspace without their consent, and even if they had blocked your invites. The researcher reported this to Slack's bug bounty programme and received 1500 USD.

This article explains the whole thing from scratch, for someone who has never done security testing before. We will go through what Slack is, what a bug bounty is, what the invite feature does, how the researcher found the flaw, and what it means. We will also explain every technical term along the way.

Background: Slack, bug bounties, and the invite feature

Slack is a cloud-based tool for team communication. It organises conversations into channels, and people in the same workspace can chat, call each other, and share files. A workspace is like a virtual office: you need an account and an invitation to get in.

Slack runs a public bug bounty programme on HackerOne. A bug bounty programme is a deal where a company pays people (researchers) for finding and reporting security problems in their software. HackerOne is a platform that manages these programmes: researchers submit reports, the company reviews them, and if the bug is valid, the company pays a reward (the bounty). Slack's programme has been open since 2014.

The feature involved here is workspace user management. As a workspace owner or admin, you can invite people by entering their email address. Slack also lets each user restrict who can invite them: you can block invites from specific people or from everyone. Normally, you cannot add someone to a workspace directly; the person must receive an invite and accept it. If they have blocked invites from you, they will not even receive your invitation.

The researcher had not used Slack before but had experience with invitation systems in other products. They chose Slack as a target because the invite flow looked interesting, and they wanted to understand how Slack tracks an invited user and whether anything can be done with that user before they accept.

Setting up

To reproduce this, you need two accounts:

  1. An attacker account that owns a workspace, or has enough permission in a workspace to manage users.
  2. A victim account, which will be invited by email address and will never interact with the invite.

No special tools are needed. Everything is done through Slack's normal user management interface and by logging in to the victim account to see the result.

Finding the flaw

When you invite someone by email, Slack's user management page shows their account type as Invited member. That is the expected state: the person has been invited but has not accepted yet.

While experimenting with the invited user, the researcher changed that user's role to admin. The account type in the management page changed from Invited member to Workspace Admin. That alone did not seem significant; it just looked like the role change updated the label.

The interesting behaviour appeared when changing the role back. Changing the invited user's role from Workspace Admin to Full member should, by expectation, have returned the account type to Invited member. Instead, the account type became Full member. The invited state had disappeared entirely, even though the victim had never touched the invite.

In other words, the act of changing the role made Slack forget that the user was still pending an invitation. The user was now treated as a full member who had joined.

Exploitation steps

Here is the sequence that adds a victim to your workspace without them accepting the invite.

Step 1: Prepare the workspace

As the attacker, you need a workspace and sufficient permission to manage users. This is the precondition for everything that follows. Without the ability to invite and change roles, you cannot trigger the flaw.

Step 2: Invite the victim

The attacker invites the victim by email address. At this point, the victim appears in user management as Invited member, and the victim receives an invite email. The victim does not need to do anything with that email.

Step 3: Leave the invite untouched

The victim does not need to interact with the invite email at all. No click, no acceptance, nothing on the victim side is required for the flaw to work. This is important: the bypass happens entirely from the attacker's side.

Step 4: Change the victim's role

As the attacker, change the invited user's role to another role, such as workspace admin, and then change it back to full member. After this, the victim's account type in the management page is Full member rather than Invited member. The invited state is gone.

Step 5: Log in as the victim

Log in to the invited member's account. The attacker's workspace is now listed among the workspaces the victim has joined. In other words, the victim has been added to the attacker's workspace without ever looking at the invite.

Why it works

The report describes this as a logical issue that lets an attacker trick Slack into treating the user as a joined member rather than an invited member. The role change appears to move the account out of the invited state, and changing the role back does not restore it: the invited marker is lost and the account is left as a full member.

The report does not explain why the invited state is not restored; it only notes that the account type changed to Full member.

In simple terms: after the role change, Slack showed the person as a full member even though they never accepted the invite.

Impact

An attacker can bypass the invite accept process for invited victims. This lets the attacker interact with the victims, for example by chatting with them, calling them or sending them notifications.

It also bypasses invite restrictions: if the victim has already blocked the attacker's invites, the attacker can still get them into the workspace this way. The report says the attacker is able to bypass the restriction of the victim's blocked invites.

The bounty awarded was 1500 USD.

Fix

The report does not describe any fix or the change Slack made.

Variants to test

If you want to look for similar bugs in other products, here are some ideas:

  1. Other role transitions. On a similar product, invite a user, move them through every available role and back, and check whether the account type ever leaves the invited state. A positive result is an invited user showing as a full member without accepting.
  2. Other management actions on invited users. Try actions such as deactivating and reactivating, moving between channels or groups, or editing profile fields on an invited account, then check the account type. A positive result is any action that turns an invited member into a joined member.
  3. Blocked invites. With a victim account that has blocked invites from the attacker, repeat the invite and role change. A positive result is the workspace appearing in the victim's workspace list despite the block.
  4. Invite by other identifiers. If the product supports inviting by username, user ID or link rather than email, repeat the flow and watch the account type. A positive result is the same transition from invited to joined without acceptance.

Getting the Medium app

If you want to read more write-ups like this on Medium, you can install the Medium app. The buttons below link to the App Store and Google Play.

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store From the original on medium.com
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store

Glossary

  • API: Application Programming Interface; a set of rules that lets one piece of software talk to another. In web apps, the browser sends requests to an API on the server to fetch or change data.
  • Bug bounty programme: A scheme where a company pays researchers for finding and reporting security vulnerabilities in its products.
  • Bypass: To get around a security control without triggering it, for example skipping a required step like accepting an invite.
  • Cookie: A small piece of data stored by the browser and sent with requests to a website, often used to keep you logged in.
  • HackerOne: A platform where companies run bug bounty programmes and researchers submit vulnerability reports.
  • Invite: An offer to join a workspace, usually sent by email, that the recipient must accept.
  • Logical issue: A flaw in the business rules or workflow of an application, rather than in low-level code like memory handling.
  • Role: A set of permissions assigned to a user in a workspace, such as admin or full member.
  • Slack: A messaging and collaboration platform for teams, organised into workspaces.
  • Token: A piece of data, often a string, used to authenticate a user or a request; similar to a temporary password.
  • Workspace: A shared space in Slack where a team communicates; it contains channels, members and settings.
  • Workspace admin: A user role with permission to manage other users and settings in a workspace.
  • Full member: A user who has joined a workspace and has normal access.
  • Invited member: A user who has been invited to a workspace but has not yet accepted.
  • Vulnerability: A weakness in software that can be exploited to cause harm or bypass security.
  • Exploit: The act of taking advantage of a vulnerability to achieve a goal, such as adding a user without consent.
  • State transition: A change from one status to another, for example from invited to joined.
  • Phishing: A trick where an attacker pretends to be a trusted entity to get someone to do something, like click a link or share information.

More by Sirat Sami

View all

1 more disclosed report, best first.

More from Slack

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.