SMF icon indicating copy to clipboard operation
SMF copied to clipboard

Don't allow multiple variations of the same gmail address

Open Oldiesmann opened this issue 14 years ago • 18 comments

GMail, unlike many other providers, allows you to format your email address using dots - [email protected] is exactly the same address as "[email protected]", though SMF doesn't think so.

I have seen several instances of spammers registering multiple accounts using multiple variations of the same address.

Unfortunately, I'm not sure it's easy to do this as we'd have to do a WHERE STR_REPLACE(".", "", email_address) (or something similar) in the DB query, and I don't know if it's very efficient to do that, especially on large forums.

Oldiesmann avatar Nov 22 '12 18:11 Oldiesmann

Not only that, stripping all the "." would affect also the domain, so that email addresses like: [email protected] to myname@mydomaintld, something that probably we don't want...

Probably to have something like that the best is "cleanup" the email addresses before they are saved into the database and then strip the "." php-side and do the ban query on the "clean" email. I would also restrict this behaviour to certain domains only, and of course have the list of domains changeable somewhere in the admin area (anti-spam?) :P).

emanuele45 avatar Nov 27 '12 14:11 emanuele45

Is this something we should implement? If strpos gmail, strip all periods prior to instance of @?

matthew-kerle avatar Dec 06 '12 15:12 matthew-kerle

The email spec states that some other things like + are also legal but are not separate addresses.

On Thu, Dec 6, 2012 at 10:22 AM, Matthew K [email protected] wrote:

Is this something we should implement? If strpos gmail, strip all periods prior to instance of @?

— Reply to this email directly or view it on GitHubhttps://github.com/SimpleMachines/SMF2.1/issues/240#issuecomment-11089439.

joshuaadickerson avatar Dec 06 '12 16:12 joshuaadickerson

No. Just... no.

live627 avatar Dec 08 '12 04:12 live627

What part you don't agree with live627? The entire gmail (maybe others) discussion or one of the other suggestions?

emanuele45 avatar Dec 08 '12 13:12 emanuele45

I see this becoming a form of voodoo magic. What happens when someone signs up with a Gmail account that has a dot in it?

EDIT: I didn't know that Gmail discarded dots in their accounts. And I even use them as my email provider! Fancy that...

II think my argument is null and void.

On Sat, Dec 8, 2012 at 6:22 AM, emanuele45 [email protected] wrote:

What part you don't want live627? The entire gmail (maybe others) discussion or one of the other suggestions?

— Reply to this email directly or view it on GitHubhttps://github.com/SimpleMachines/SMF2.1/issues/240#issuecomment-11158611.

live627 avatar Dec 08 '12 18:12 live627

I agree with not implementing it. It has come up before. If people are having an issue with it, it should be addressed with a customization. Can you ban with a regular expression? That would be a better feature.

On Sat, Dec 8, 2012 at 1:22 PM, John Rayes [email protected] wrote:

I see this becoming a form of voodoo magic. What happens when someone signs up with a Gmail account that has a dot in it?

EDIT: I didn't know that Gmail discarded dots in their accounts. And I even use them as my email provider! Fancy that...

II think my argument is null and void.

On Sat, Dec 8, 2012 at 6:22 AM, emanuele45 [email protected] wrote:

What part you don't want live627? The entire gmail (maybe others) discussion or one of the other suggestions?

— Reply to this email directly or view it on GitHub< https://github.com/SimpleMachines/SMF2.1/issues/240#issuecomment-11158611>.

— Reply to this email directly or view it on GitHubhttps://github.com/SimpleMachines/SMF2.1/issues/240#issuecomment-11161701.

joshuaadickerson avatar Dec 11 '12 20:12 joshuaadickerson

@joshuaadickerson Banning with regular expressions wouldn't do any good here unless you can somehow say "match this string with 0 or 1 dots after each character except the last one", and even then that would only work for one specific address.

I don't want to ban all dotted gmail addresses as there are legitimate uses for the feature (though I can't see any reason why you'd need to use more than one dot, and have banned "..*@gmail.com" on at least one forum), but it's a bit annoying that there's no easy way to prevent this obvious workaround.

Oldiesmann avatar Dec 11 '12 21:12 Oldiesmann

As of now, SMF could see "[email protected]" and "[email protected]" as two completely different email addresses, although if you email both, it'll go to the same account. I personally see this as a flaw in how SMF handles Gmail addresses, which theoretically then should be resolved.

It'd be as simple as stripping periods ahead of the @ symbol and THEN seeing if a member is registered with that email. Heck, you could even save them however they were entered, and then when doing the search just do the same regex.

matthew-kerle avatar Dec 13 '12 18:12 matthew-kerle

And all of that pales into insignificance when you realise that any domain that uses Google Apps can potentially do exactly the same thing...

Arantor avatar Dec 31 '12 16:12 Arantor

@Arantor Google Apps treat dots in the email address strictly. So [email protected] is a different box than johndoe@ and john.do.e@

mikemill avatar Dec 31 '12 17:12 mikemill

http://support.google.com/a/bin/answer.py?hl=en&answer=33386

mikemill avatar Dec 31 '12 17:12 mikemill

Huh, I thought it did. Wish I'd have known that last week, I could have saved myself a silly amount of work.

Arantor avatar Dec 31 '12 23:12 Arantor

Reminder: https://support.google.com/a/answer/33386?hl=en less than a month away. Should this issue be closed?

Xarcell avatar Jan 15 '14 15:01 Xarcell

Google Apps and Gmail are two different things as pointed out previously and in that link.

Arantor avatar Jan 15 '14 16:01 Arantor

I misunderstood the the link as saying. I thought it was saying various dots within a gmail would no longer work or be considered different email addressed.

Xarcell avatar Jan 15 '14 19:01 Xarcell

I think we can close this, since it only affects a single service (GMail), it wouldn't be worth putting forth the effort to put it into effect. There are other, better way at preventing spam.

jasonclemons avatar Aug 11 '15 21:08 jasonclemons

Admins themselves can get around this by creating a ban .@gmail.com and disallowing it to register. SMF only uses * for the wildcard and uses the literal .

jdarwood007 avatar Aug 11 '15 23:08 jdarwood007