# Customer private program can disclose email any users through invited via username

GraphQL soft_launch_invitations exposed invite tokens, and the token's .json endpoint leaked the invited user's private email address.

- Payout: $7,500
- Severity: high
- Program: HackerOne
- Found by: haxta4ok00
- Disclosed: 2020-05-15
- Write-up quality: 7/10
- Original: https://hackerone.com/reports/807448
- Library page: https://bugbountylibrary.com/r/h1%3A807448
- Tags: area:web domain:web impact:pii-leak kind:bounty platform:hackerone sev:high tech:graphql technique:recon vuln:access-control vuln:info-disclosure

**Target:** HackerOne GraphQL team query and soft-launch invitation token endpoint
**Root cause:** The team GraphQL object exposed soft_launch_invitations tokens to unauthorized viewers, and the invitation token JSON endpoint returned the invitee's email without authorization checks.
**Steps:**
1. Create a soft-launch invite by username at `https://hackerone.com/hackerone_h1p_bbp3/launch`.
2. Query GraphQL: `{"query": "query {team(handle:\"hackerone_h1p_bbp3\"){_id,handle,soft_launch_invitations{total_count,nodes{... on InvitationsSoftLaunch{token}}}}}"}` to obtain invite tokens.
3. Fetch the token JSON endpoint (e.g. `<token>.json`) which returns `email`, `recipient.username`, `status`, `expires_at`.
4. Read the invitee's private email before they accept/reject the invite.
**How found:** Noticed that creating an invite yields a token, then probed GraphQL for the team's soft_launch_invitations to enumerate tokens, and discovered the token JSON endpoint discloses the invitee email.
**Exploitation:** Attacker creates an invite to a target username, extracts the resulting token via the GraphQL soft_launch_invitations field, then requests the token's .json representation to read the invitee's email address. Must be done before the invitee responds.
**Insight:** Invitation tokens are often treated as opaque but their JSON/API representations can carry PII; enumerate GraphQL object fields like soft_launch_invitations and then dereference each token against its REST/JSON endpoint.

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

**Invitation JSON endpoint leaking recipient email**

```
{"token":"████████","type":"Invitations::SoftLaunch","auth_option":"has-no-access","email":"████@managed.hackerone.com","status":"valid","expires_at":"2020-03-06T21:33:31.689Z","recipient":{"username":"zebra","profile_picture":"███","url":"https://hackerone.com/zebra"},"open_soft_launch_invitations_count":0}
```

