Email address of any user can be queried on Report Invitation GraphQL type when username is known
An invitation object exposed through GraphQL returned the invited user's email address even when the invitation was created by username, which should have hidden it. An attacker who knew a username could invite that user to a report and read back their email address.
- Triaged in under an hour
- Fixed in 3 hours
- Paid in 14 hours
- Disclosed after 9 days
Summary by the program
Issue Summary
Through the HackerOne Bug Bounty Program on February 11, 2020 at 5:55 UTC, a HackerOne community member (“hacker”) notified HackerOne that they were able to determine a user’s email address by generating an invitation using only their username. The team patched the vulnerability at 08:30 UTC the same day.
The technical investigation finished at 8:40 UTC, concluding that there was no malicious intent or indicators of exploitation.
Timeline
| Date Time (UTC) | Action |
|---|---|
| 2020-02-10 15:13 | Software containing vulnerability deployed to production. |
| 2020-02-11 05:53 | Vulnerability submitted to HackerOne’s bug bounty program. |
| 2020-02-11 05:55 | Incident Response (IR) team member on-call was paged about a critical severity report submitted to the HackerOne bug bounty program. |
| 2020-02-11 05:57 | The on-call team member triaged the report and notified the full IR team. |
| 2020-02-11 06:04 | A specialized IR team was assembled and began the investigation. |
| 2020-02-11 08:30 | A vulnerability patch was deployed. |
| 2020-02-11 08:44 | HackerOne’s IR team concluded technical investigation. |
| 2020-02-11 23:54 | Two users were alerted that their information was exposed to the reporters who submitted the vulnerability. |
Root Cause
HackerOne has an invitation system that allows program owners to send invitations to users for various purposes, such as invitations to hack on private programs, claim bounties, be added to programs, among others. The invitation system allows users to be invited by email or by username. If a user is invited by their username, the sender is not permitted to view the email address the invitation is sent to for user privacy. This rule has been guarded by HackerOne’s Access Control Lists (ACLs) in HackerOne’s Representational state transfer (REST) framework, but HackerOne has been migrating these objects to GraphQL under a new protection layer. When exposing a new invitation object, the ACL rule previously applied wasn’t implemented correctly to the new GraphQL protection layer.
How could this have been exploited to impact any user? HackerOne provides demo programs for customers to experience the product as well as hackers to test against our production system. When you are a team member in a demo program, you can demo the report interface. In the report interface, you can invite an external participant to the report, which could be any user on the platform. By generating that invitation with a username and then viewing the invitation, the user’s email could have been exposed.
Resolution and Recovery
At 5:57 UTC, HackerOne successfully reproduced the vulnerability as described by the reporter. The IR team identified the change that introduced the vulnerability shortly after. A fix was deployed at 8:30 UTC, adding the necessary ACL into the GraphQL protection layer.
The IR team worked in parallel to identify the accounts impacted. It was determined shortly after the fix that there were no other usages except for those attempts by the reporter.
The maximum possible impact was assumed in determining the Common Vulnerability Scoring System (CVSS) score, which resulted in High (8.3). HackerOne decided to award a bonus of $1,000 due to the time to discover the vulnerability since the code was released, approximately 16 hours after the change was deployed.
Vulnerability Impact on Data
The reporter accessed the email addresses of two specific users to verify the findings, no other information could have been accessed with the discovered vulnerability.
| Attribute | Description |
|---|---|
| The email address of the user invited |
Preventative Measures
As part of the HackerOne Incident Response process, HackerOne has conducted an internal review and analysis of the incident. HackerOne has taken the following actions to address the underlying cause of the issue and help prevent future occurrence.
Implement the proper ACL check within the invitation model
This change was the mitigating fix for resolving this vulnerability. It was deployed at 8:30UTC.
Identify sensitive database fields being added to GraphQL
HackerOne maintains a list of sensitive database fields. The application security team is planning to leverage this list to have engineers acknowledge that they’ve, to their knowledge, properly implemented the authorization logic when they put up a code merge request. This change is expected to be implemented in Q1 2020.
The report
Summary: Email id of all hackerone users disclosure
Description: There is an flaw , with that i can get all hackerone users email id
Steps To Reproduce
- Invoke the below graphql call
POST /graphql HTTP/1.1
{"query":"mutation Revoke_credential_mutation($input_0:AddReportParticipantInput!) {addReportParticipant(input:$input_0) {clientMutationId,...F1}} fragment F1 on AddReportParticipantPayload {clientMutationId,was_successful,errors{nodes{message}},invitation{email,token}}","variables":{"input_0":{"report_id":"Z2lkOi8vaGFja2Vyb25lL1JlcG9ydC82MjYzNzE=","email":"██████████","username":"jobert"}}}
you will get below response
{"data":{"addReportParticipant":{"clientMutationId":null,"was_successful":true,"errors":{"nodes":[]},"invitation":{"email":"████","token":null}}}}
- to reproduce from your account, create one test program, and create one report for that program, get that report id gid://hackerone/Report/626371 (here 626371 my test program's report id) convert it into base 64, replace that id with the "report_id" in the above graphql query
- Done
Impact
PII disclosed
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 access-control rule that hid the invitee's email was not reimplemented in the new GraphQL protection layer when the invitation object was migrated.
Impact
Any user's email address could be disclosed to someone who knew their username; the report states the reporter accessed the addresses of two specific users to verify the finding.
What the attacker needed
A demo or test program; a report in that program; knowledge of the target username
The fix
The missing access-control check was added to the GraphQL protection layer and the fix was deployed.
How it was found
- Create a test program and a report in it, then take the report's identifier.
- Convert the report identifier to its base64 form and use it as the report_id in the invitation request.
- Send the GraphQL request that adds a report participant using a known username.
- Read the email address returned in the invitation part of the response.
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.
A website can have rules about who is allowed to see which pieces of data. Here, one rule said that if you invite someone by their username, you must not be shown the email address the invite goes to. When that invitation feature was rebuilt on a newer part of the system, the rule was not carried over, so the email address came back in the response.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.