Skip to content
Info disclosure Disclosed report Beginner

User email enumuration using Gmail

Coinbase's contact import feature revealed whether an email address belonged to an existing Coinbase account. An attacker could upload a large list of guessed Gmail addresses and learn which ones had Coinbase accounts.

paulos__ Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 4 days
  • Paid in 4 days
  • Disclosed after 3 months

Hi,

Using Gmail it is possible to get the list of email addresses that use/have coinbase accounts.

as a prerequisite: we will need a script to bruteforce a list of email addresses. consider this script:

Python
import random
#values only contain small letters and numbers
letters = 'abcdefghijklmnopqrstuvwxyz0123456789'
def generateWord():
        letter = ''
        for i in range(12): #all possisble values are 12 in length
                letter += random.choice(letters)
        return letter
#add all possible values to list
file = open("wordList.txt","a")
counter = 1;
while True:

        try:
                #avoid duplicates
                generated = generateWord()+"@gmail.com;
                file.write(generated)
                print counter,"words Generated so far"
                counter++;
        except KeyboardInterrupt:
                break 

That script will generate all the list of emails that can be created with a-z+0-9. this can easily be used with a dictionary bruteforce attack to generate more realistic emails like ██████████ (note: this is actually pretty much doable with a much powerful botnet who multi-thread this and give back the list of emails).

Then we will add these contacts to our Google Contacts (google.com/contacts), then ask Coinbase to import contacts to invite. (https://www.coinbase.com/invite_friends). after Coinbase imported our contacts, it tries to provide a feature to tell if an account already have a Coinbase account or not. (see screenshot)

Its pretty much known most people who use Bitcoin are those who want to hide their real identity. but by using this trick, it is to know the user list. I believe this is some sort of Duplicate of some issue because you probably taught of this, or not. but anyway, I am going to propose a way to fix it

Recommended Fix: if a user is already a member to coinbase, the person who is inviting them doesn't need to know that. if he/she is already a member, the person inviting will see them as a normal email and will still see, "Invite Sent". but in the background, invite for memebers won't be sent and for non-memeber will be.

Thanks, P

Attachments

coinbase_enumurate.JPG
coinbase_enumurate.JPG From the original on HackerOne

The original report as published on HackerOne, by paulos__. 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 invite feature returned different responses for registered and unregistered email addresses, allowing attackers to distinguish them.

Impact

An attacker could determine which email addresses are associated with Coinbase accounts, potentially deanonymising users who wish to keep their cryptocurrency activities private.

What the attacker needed

A Coinbase account; a Google account with Contacts; a list of email addresses to test

The fix

The invite feature should not reveal whether an email is already registered; it should show the same 'Invite Sent' message for all addresses and silently skip sending invites to existing members.

How it was found

  1. Generate a list of possible Gmail addresses using a script.
  2. Add these addresses to Google Contacts.
  3. Use Coinbase's import contacts feature to invite them.
  4. Observe which contacts are shown as already having a Coinbase account.

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 friends to a service, the site may check if each email is already registered. Here, that check told the inviter which emails had accounts, so someone could test many addresses and build a list of users. This is called email enumeration.

What is Info disclosure?

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

More by paulos__

View all

16 more disclosed reports, best first.

More from Coinbase

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.