Live data from Hacker News

Abusing Gmail to get previously unlisted e-mail addresses

blog.0day.rocks

11–20 of 51 posts

Re: Abusing Gmail to get previously unlisted e-mail addresses

#11
post #5

Wouldn't a similarly effective method be to script SMTP and see which ones get rejected as envelope to addresses?

Sure, but I imagine there is some form of rate limiting on that, whereas the point of the article is that they found an endpoint without rate limits.

Re: Abusing Gmail to get previously unlisted e-mail addresses

#12

This isn't an issue, you can do the same thing with the main login form and a number of undocumented APIs. I've never seen anyone else acknowledge "confirmation of email address existence" as a security issue and I don't see why Google should be the first.

> I've never seen anyone else acknowledge "confirmation of email address existence" as a security issue

It's usually called "username enumeration" and there's plenty of pen testing firms that include this as a standard part of their process.

Re: Abusing Gmail to get previously unlisted e-mail addresses

#13
Email enumeration is often determined to be a UX choice rather than a security issue. I've explored this in the past with the idea of doing this to popular sites to build a demo/psychographic profile of an email address. Had a MVP hosted but not working at the moment. I remember sites included FB, Sephora, Home Depot, CafeMom, ESPN. Most have a XHR call to an API that determines if email exists or a message saying "Your password is incorrect".

Re: Abusing Gmail to get previously unlisted e-mail addresses

#15
I see companies trying to solve a similar issue on their password reset forms. They ask you to enter an email address - then give you a reply "if that email exists, we have sent a password reminder there".

The problem is these sames sites have a self-signup, using a unique email as your login. So you can already find out if an email address is in use or not.

If you've going to 'leak' the data one way or another, dont sacrifice UX for the sake of it.

Re: Abusing Gmail to get previously unlisted e-mail addresses

#16
post #14
post #5

Wouldn't a similarly effective method be to script SMTP and see which ones get rejected as envelope to addresses?

No, google SMTP accepts the RCPT TO with 250 "I'll try my best" regardless of the existence of the email.

Nope, it doesn't do that.

  >RCPT TO: 
  550-5.1.1 The email account that you tried to reach does not exist. Please try
  550-5.1.1 double-checking the recipient's email address for typos or
  550-5.1.1 unnecessary spaces. Learn more at
  550 5.1.1  https://support.google.com/mail/?p=NoSuchUser j63si2824869ybj.160 - gsmtp
  >RCPT TO: RCPT TO: 
  250 2.1.5 OK j63si2824869ybj.160 - gsmtp

Re: Abusing Gmail to get previously unlisted e-mail addresses

#17
post #4

Earlier quoted context omitted.

Nah, it's not a security bug, that means we can exploit it.

Makes me wonder what they require to classify the bug as a security bug. Perhaps it gets classified otherwise since there's no data leakage other than an address? The existence of an address isn't exactly confidential.

I mean it's pretty much "does a shitty engineer look at this ticket or not", like most large companies.

Re: Abusing Gmail to get previously unlisted e-mail addresses

#18
post #9

I'm going to have to agree with Google here, in that this isn't an exploitable security vulnerability. Knowing that the mailboxes famous.celebrity@gmail.com or controversial.journalist@gmail.com exist doesn't bring me any closer to exploiting the knowledge. I don't know that Famous Celebrity is in fact THE famous celebrity. I don't know whether Controversial Journalist still reads mail sent to that account. Most impo…

To verify the existence of a single account all you need to do is go to gmail.com and attempt logging into it. It's that simple. Sometimes you will even see the profile pic so you know who this user is or claims to be.

The OP found a way to discover 40000 new addresses of random people per day by brute forcing through a dictionary-generated list of plausible candidates.

Use it for Nigerian scams, Viagra ads, account hijacking, anything you please.

Re: Abusing Gmail to get previously unlisted e-mail addresses

#19

This isn't an issue, you can do the same thing with the main login form and a number of undocumented APIs. I've never seen anyone else acknowledge "confirmation of email address existence" as a security issue and I don't see why Google should be the first.

> I've never seen anyone else acknowledge "confirmation of email address existence" as a security issue It's usually called "username enumeration" and there's plenty of pen testing firms that include this as a standard part of their process.

How do you prevent username enumeration when you want to have a username taken feature in the sign up process? I suppose a way to handle that would be to throttle the number of times such an IP can make those requests per month or something. This still will not prevent a motivated attacker, or the casual use to check if one or two usernames are registered.

Re: Abusing Gmail to get previously unlisted e-mail addresses

#20

I see companies trying to solve a similar issue on their password reset forms. They ask you to enter an email address - then give you a reply "if that email exists, we have sent a password reminder there". The problem is these sames sites have a self-signup, using a unique email as your login. So you can already find out if an email address is in use or not. If you've going to 'leak' the data one way or another, dont…

Do the same thing on the signup page: If the email is already registered just progress the same way - send an email to that address and notify them that they already have an account.
Post reply on HN