Customer private program can disclose email any users through invited via username
A GraphQL query on a private program's soft-launch invitations returned invitation tokens, and each token could then be used to fetch a JSON object containing the invited user's email address. An attacker with access to the program could therefore disclose the email of any user they invited by username.
haxta4ok00 Follow with nahamsec and fisher
Originally disclosed on HackerOne
- Triaged in 4 days
- Fixed in 28 days
- Paid in 2 months
- Disclosed after 3 months
Summary:
Hey team,This bug could have been used by my calculations a long time ago
Steps To Reproduce:
1)Go to https://hackerone.com/hackerone_h1p_bbp3/launch 2)Take invite via username 3)Input username , send invite 3.1)When an invite is created, we get a token 4)Now Go use GraphQL query
https://hackerone.com/graphql?
{"query": "query {team(handle:\\"hackerone_h1p_bbp3\\"){_id,handle,soft_launch_invitations{total_count,nodes{... on InvitationsSoftLaunch{token}}}}}"}
Answer:
{"data":{"team":{"_id":"47388","handle":"hackerone_h1p_bbp3","soft_launch_invitations":{"total_count":5,"nodes":[{"token":"████████"},{"token":"███"},{"token":"████"},{"token":"██████"},{"token":"████████"}]}}}}
████
5)Now check .json - █████████
{"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}
"email":"██████████@managed.hackerone.com"
██████
6)You need to do this immediately before the user accepts or rejects our request for an invite
Thanks, @haxta4ok00
Impact
Disclosed email
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 invitation token was treated as sufficient authorisation to read the invitation details, including the recipient's email, without checking that the requester was entitled to see that data.
Impact
The email address of any invited user could be disclosed, but only while the invitation was still pending.
What the attacker needed
Access to the private programme; invite a user by username; act before the invite is answered
How it was found
- Open the private programme's launch page.
- Create an invitation by entering a username.
- Note the token returned when the invitation is created.
- Run a GraphQL query that lists the programme's soft-launch invitation tokens.
- Use a token to load the invitation's JSON, which contains the invited user's email.
- Do this before the invited user accepts or rejects the invitation.
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.
When you invite someone to a private programme, the site creates a secret invitation token. The report shows that a query could list those tokens, and that a token could be swapped for a page showing the invited person's email address. So someone with access to the programme could learn the email of anyone they invited.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.