# session takeover via open protocol redirection on streamlabs.com

Open redirect on streamlabs.com/global/identity appends access_token to arbitrary protocol redirect, letting a malicious app steal the token and take over the session.

- Payout: $200
- Severity: medium
- Program: Logitech
- Found by: f_m
- Disclosed: 2021-09-01
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/1178239
- Library page: https://bugbountylibrary.com/r/h1%3A1178239
- Tags: area:web domain:web impact:ato impact:data-leak kind:bounty platform:hackerone sev:medium tech:oauth technique:recon vuln:account-takeover vuln:open-redirect

**Target:** streamlabs.com /global/identity endpoint (OAuth-style redirect handler)
**Root cause:** The `r` redirect parameter accepts arbitrary protocols and the server appends the user's access_token to the redirect URL without validating the scheme or destination.
**Steps:**
1. Authenticate on streamlabs.com.
2. Visit `streamlabs.com/global/identity?popup=1&r=test://merch.streamlabs.com` and intercept in Burp.
3. Observe redirect Location containing `test://merch.streamlabs.com` with `access_token` appended.
4. Change protocol to `https` and open the captured redirect URL in a private browser window.
5. Navigate to `https://merch.streamlabs.com/` or `https://streamlabs.com/<store_name>` and observe being logged in as the victim.
**How found:** Researcher noticed the identity endpoint merges the `r` redirect target with an access_token, then tested whether arbitrary protocols were accepted and whether the token leaked into the redirect.
**Exploitation:** A malicious app registers a custom URL scheme (e.g. `test://`). When the victim loads the crafted identity endpoint, the server redirects to the attacker's protocol with the access_token embedded; the OS hands the URL to the malicious app, which extracts the token and replays it against streamlabs domains to impersonate the victim.
**Escalation:** Token reuse across multiple streamlabs subdomains (merch.streamlabs.com, store pages, my-portal) broadens the takeover surface.
**Insight:** On OAuth/identity redirect handlers, test whether the token is appended to the Location header and whether custom URL schemes are accepted — mobile OSes hand those to registered apps, turning a redirect into token exfiltration.

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

**Identity endpoint redirects to arbitrary protocol with token**

```
streamlabs.com/global/identity?popup=1&r=protocol://merch.streamlabs.com` redirect any authenticated user to a arbitrary protocol, and it merge the redirect link with an access_token.
```

**Reproduction request with test protocol**

```
streamlabs.com/global/identity?popup=1&r=test://merch.streamlabs.com and intercept the request in burp.
  2. grab the redirection link in the response(as a malicious app can do, especially on mobile systems), change the protocol to https and open it in a private browser window
```

