HackerOne · Report #196655
Disclose any user's private email through API
Validstatus
mediumseverity
140upvotes
24 Feb 2017disclosed
How it was found
#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]>"}