Disclose any user's private email through API
An attacker could disclose any user's private email by adding that user as a participant to a report and then fetching the report through the API, which returned the invited user's email in the activities object.
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 4 days
- Paid in 47 days
- Disclosed after 48 days
#Description: I have found a security vulnerability that allows an attacker to disclose any user's private email. An attacker can disclose any user's private email by creating a sandbox program then adding that user to a report as a participant. Now if the attacker issued a request to fetch the report through the API , the response will contain the invited user private email at the activities object.
#Steps to reproduce:
- Go to any report submitted to your program.
- Add the victim username as a participant to your report.
- Generate an API token.
- Fetch the report through the API
curl "https://api.hackerone.com/v1/reports/[report_id]" \
-u "api_idetifier:token"
The response will contain the invited user email at the activities object:
"activities":{"data":[{"type":"activity-external-user-invited","id":"1406712","attributes":{"message":null,"created_at":"2017-01-08T01:57:27.614Z","updated_at":"2017-01-08T01:57:27.614Z","internal":true,"email":"<victim'[email protected]>"}
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 API response for report activities included the invited user's email field without filtering or access control.
Impact
An attacker could disclose any user's private email address.
What the attacker needed
A sandbox program; ability to add participants to a report; an API token
How it was found
- Go to any report submitted to your program.
- Add the victim username as a participant to your report.
- Generate an API token.
- Fetch the report through the API.
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 add someone to a report, the system stores their email address. The API that returns report details included that email in its response, even though it should have been hidden. This meant anyone with an API token could see private emails of users they invited.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.