Skip to content
Info disclosure Disclosed report Beginner

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.

Mahmoud Gamal Follow

Originally disclosed on HackerOne

Medium 4.3 View original
  • 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:

  1. Go to any report submitted to your program.
  2. Add the victim username as a participant to your report.
  3. Generate an API token.
  4. 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:

JSON
"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]>"}

The original report as published on HackerOne, by zombiehelp54. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Go to any report submitted to your program.
  2. Add the victim username as a participant to your report.
  3. Generate an API token.
  4. 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.

More by Mahmoud Gamal

View all

32 more disclosed reports, best first.

More from HackerOne

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.