News for hackers. Stuff that matters.
Re:Data allegedly stolen from 560M Ticketmaster users by throw0101d on Friday May 31, 2024 @11:21AM (#40536332)
> […] from [email protected] to [email protected].

Webdevs of HN: how many of you make a point of allowing sub-addressing?

* https://en.wikipedia.org/wiki/Email_address#Sub-addressing

Re:Data allegedly stolen from 560M Ticketmaster users by free_bip on Friday May 31, 2024 @11:25AM (#40536383)
The actual relevant question is: how many of you make a point of disallowing this? You have to go out of your way to make that not work, given that + is a valid character in email addresses.
Re:Data allegedly stolen from 560M Ticketmaster users by throw0101d on Friday May 31, 2024 @11:31AM (#40536451)
> You have to go out of your way to make that not work, given that + is a valid character in email addresses.

Per another comment, all one would need for it to not work is have a regex of [a-zA-Z0-9]@[a-z.]+, or using POSIX-compat, [:alnum:].

* https://en.wikipedia.org/wiki/Regular_expression#Character_c...

Re:Data allegedly stolen from 560M Ticketmaster users by nielsole on Friday May 31, 2024 @11:35AM (#40536511)
> [a-zA-Z0-9]@[a-z.]+

Only a small minority of my email addresses I've ever had matches that pattern.

Re:Data allegedly stolen from 560M Ticketmaster users by throw0101d on Friday May 31, 2024 @11:40AM (#40536557)
> Only a small minority of my email addresses I've ever had matches that pattern.

The example is illustrative, and not definitive, as to how the simple and innocuous decision about a regex can determine functionality, and it is not about someone going "out of your way to make that not work" to break things.

Re:Data allegedly stolen from 560M Ticketmaster users by dxdm on Friday May 31, 2024 @11:46AM (#40536627)
I don't know if that's what you're trying to say, but what it illustrates to me is how easy it is to quickly cook up a simple regex to filter out certain patterns in email addresses and feel like it's doing the job, while unintentionally breaking things for a large number of people you don't have on your radar.
Re:Data allegedly stolen from 560M Ticketmaster users by codetrotter on Friday May 31, 2024 @11:56AM (#40536726)
For example, an email like

[email protected]

would be completely normal.

Yet the above regex would not match it. Whoops.

Likewise,

[email protected]

which is also completely normal and typical, would fail the regex as well.

But I guess if the only kind of customers you want are the

[email protected]

and

[email protected]

people then sure, this otherwise wholly inadequate regex would serve you well.

Re:Data allegedly stolen from 560M Ticketmaster users by throw0101d on Friday May 31, 2024 @11:53AM (#40536711)
> […] while unintentionally breaking things for a large number of people you don't have on your radar.

And you can unintentionally cause sub-addressing to not work without having "to go out of your way to make that not work" like the GGGP wrote.

Re:Data allegedly stolen from 560M Ticketmaster users by dxdm on Friday May 31, 2024 @11:59AM (#40536772)
I think I misunderstood your point before. I thought you wanted to show a regex that _intentionally_ disables it. It also happens to disable a lot more, making it a bad choice. Now I'm thinking that you might actually agree with that.
Re:Data allegedly stolen from 560M Ticketmaster users by LocalPCGuy on Friday May 31, 2024 @01:20PM (#40537819)
This is why my preferred email regex is just .*@.* (I've been talked into .*@.*\..{2,} before as a slightly more restrictive pattern). And I realize there may be times/places this is not satisfactory, but it works for most general cases.
Re:Data allegedly stolen from 560M Ticketmaster users by oarsinsync on Friday May 31, 2024 @11:23AM (#40536346)
Why would you need to make a point of allowing sub-addressing? Surely it’s whether or not you make a point of disallowing it?
Re:Data allegedly stolen from 560M Ticketmaster users by mrsilencedogood on Friday May 31, 2024 @11:27AM (#40536404)
I work at a place that just recently clamped down on this. We decided to normalize the emails so that we have a column in the db like "email" and then also "normalized_email" where normalized_email has a unique key on it too. This way, people can still make their email look like whatever they want, but they also only get 1 per email inbox.

This was all because people were doing abuse more easily by churning lots of accounts while only needing 1 gmail address. Plugging this gap was a huge deal for us in reducing card testing problems.

Re:Data allegedly stolen from 560M Ticketmaster users by Mavvie on Friday May 31, 2024 @11:44AM (#40536610)
This sounds like a very nice compromise actually. I'm surprised it helped with abuse though, since there's a lot of email providers that are easier to create an account with than gmail.
Re:Data allegedly stolen from 560M Ticketmaster users by mariusor on Friday May 31, 2024 @01:13PM (#40537718)
It's trivial to defeat though, all you need is your own domain and an email provider that supports catch all email addresses.
Re:Data allegedly stolen from 560M Ticketmaster users by mrsilencedogood on Monday June 03, 2024 @04:48PM (#40567377)
A big part of handling abuse is to recognize that you cannot win - all you can do is better. And a big part of abuse is just raising the bar of sophistication required to abuse you. We went from "any random script kiddie with a gmail account gets infinite accounts easily" to "now someone has to use a custom email domain" (which is easy for us to just banhammer the domain), which both requires sophistication and money. And it makes the banhammer-swing more on par with the amount of effort they have to put in to evade it - banning the domain means go find another domain and pay another registrar fee.
Re:Data allegedly stolen from 560M Ticketmaster users by mynameisvlad on Friday May 31, 2024 @11:36AM (#40536528)
We’ve done this for a long while too. You can use subaddressing, but you’re still limited to one account per “base email”. We also normalize dots and other methods of reusing an email account.
Re:Data allegedly stolen from 560M Ticketmaster users by ryandrake on Friday May 31, 2024 @12:12PM (#40536920)
Just changing the delimiter would probably thwart most efforts like this. I self host so am not limited to the + character. So, I currently use name-subaddress@domain. I could easily switch to using underscore as my delimiter. Or I could just use subaddress@domain. This is dead simple and I don’t even have commercial motivation. Good luck!
Re:Data allegedly stolen from 560M Ticketmaster users by mynameisvlad on Friday May 31, 2024 @12:16PM (#40536964)
I mean, sure, but it does thwart the vast majority of users who don’t even know this is an option. Most people don't know you can have an email from someone other than the major providers, let alone on a custom domain or selfhosted.

At the end of the day, nothing will thwart a determined person. But that’s not the goal. If it deters the vast majority of your users from making duplicate accounts, then it’s still a success.

Perfect is the enemy of good, after all.

Re:Data allegedly stolen from 560M Ticketmaster users by xp84 on Friday May 31, 2024 @12:49PM (#40537372)
Yes, and another super cool thing is the prevention of accidental screwups where someone typos their email. If the typo collides with an existing account after normalization, it could be (correctly) rejected. Without this normalization index, you could have ronx@gmail pre-existing, someone trying to type "rob.x" typos "ron.x" -- and now a bunch of emails start going out to poor "ronx" (who often doesn't understand what's going on, thinks his account is 'hacked,' etc. Ideally, the system would (for Gmail addresses) reject "ron.x" knowing it's basically tied to an existing user.
Re:Data allegedly stolen from 560M Ticketmaster users by Marsymars on Friday May 31, 2024 @12:46PM (#40537325)
> We also normalize dots and other methods of reusing an email account.

Is that limited by domain? gmail's dot handling isn't at all standard; e.g. [email protected] and [email protected] are different accounts, as are [email protected] and [email protected].

Re:Data allegedly stolen from 560M Ticketmaster users by mynameisvlad on Friday May 31, 2024 @02:56PM (#40538952)
Yes. Some of it is handled by our email verification provider while others are done in-house based on real-world experience. We handle a bunch of the major domains that our users use.
Re:Data allegedly stolen from 560M Ticketmaster users by contravariant on Friday May 31, 2024 @11:27AM (#40536406)
You could 'accidentally' prevent it by enforcing some incorrect regexp like [a-zA-Z0-9]@[a-z.]+

Not allowing a '+' to appear in the local part is not even that unreasonable. It's against the standard, but then "My email is [email protected]"@example.com is valid according to the standard so take the standard with a grain of salt.

Re:Data allegedly stolen from 560M Ticketmaster users by codetrotter on Friday May 31, 2024 @11:47AM (#40536641)
https://www.rfc-editor.org/rfc/rfc5322.html

This is the standard.

“Taking it with a grain of salt” results in broken websites and servers that reject valid mail addresses.

Re:Data allegedly stolen from 560M Ticketmaster users by Timon3 on Friday May 31, 2024 @11:35AM (#40536500)
What's the issue with "My email is [email protected]"@example.com? Why disallow it, or use it to argue that the standard isn't good?
Re:Data allegedly stolen from 560M Ticketmaster users by contravariant on Friday May 31, 2024 @12:28PM (#40537120)
It's just to illustrate that the standard is more complicated than people might realise. I think you'll have problems getting most systems to accept an email address with two @s in it, but I might be wrong. Either way it would definitely break some (not too well written) code.

Though if possible I'd err on the side of being too permissive rather than too restrictive. In the end the only true way to validate an address is to send it an email.

Re:Data allegedly stolen from 560M Ticketmaster users by throw0101d on Friday May 31, 2024 @11:56AM (#40536729)
> Why disallow it, or use it to argue that the standard isn't good?

Because lots of folks fat finger their own e-mail addresses and then complain that a 'site sucks' because signing up doesn't work. Sanity checking to protect people against themselves may be treated as a form of UX: it's probably why some forms insist you type (not copy-paste) your e-mail twice.

Re:Data allegedly stolen from 560M Ticketmaster users by xp84 on Friday May 31, 2024 @12:54PM (#40537434)
I'm perpetually flabbergasted by how anyone thinks this "no pasting" thing is a pro-accuracy idea. As though people would be copying from a bad source. I see this a lot on forms for bank account numbers -- maybe one of the least amenable formats to visually copying down and retyping, since they're never written with delimiters or punctuation. I store them in my password manager, and then some idiotic form wants me to type my 18-digit bank account number, twice, on my phone, where I can't see more than one application at a time.
Re:Data allegedly stolen from 560M Ticketmaster users by Mavvie on Friday May 31, 2024 @11:43AM (#40536587)
Well, you have to go out of your way to prevent it. The sub-addressing complexity is on the email provider side; ticketmaster doesn't have to do anything for it to work except not reject valid email addresses.

In my experience, most but not all sites will accept "+" email addresses.

Re:Data allegedly stolen from 560M Ticketmaster users by philote on Friday May 31, 2024 @11:42AM (#40536586)
At my current employer we do allow this. It's handy for testing and not a big deal if we have users doing this to make multiple accounts (they don't gain anything by doing that). But at a previous job it was a bigger deal and we'd strip off the sub-address part because we were trying to match up email addresses across client sites (this was due to a bit of a shady thing the company was doing and part of the reason why I left).
Re:Data allegedly stolen from 560M Ticketmaster users by meowster on Friday May 31, 2024 @11:25AM (#40536371)
I set up a domain with a catchall email, and give every service different letters/numbers.
Re:Data allegedly stolen from 560M Ticketmaster users by codetrotter on Friday May 31, 2024 @11:29AM (#40536430)
I use iCloud mail. It generates new addresses for me for different services.

The generated addresses are all completely distinct, and can be revoked.

They look like for example:

[email protected]

[email protected]

Re:Data allegedly stolen from 560M Ticketmaster users by meowster on Friday May 31, 2024 @12:03PM (#40536821)
You have to generate addresses before you can use them. That doesn't seem very convenient.
Re:Data allegedly stolen from 560M Ticketmaster users by ZekeSulastin on Friday May 31, 2024 @12:13PM (#40536937)
At least on iOS, you’re given a “Hide My Email” option when you’re on a sign up page that generates the new address right when you need it.
Re:Data allegedly stolen from 560M Ticketmaster users by xp84 on Friday May 31, 2024 @12:55PM (#40537465)
I've been encountering lately a surprising number of deliverability problems (as in, the emails never arrive) when I try to use "Hidden" icloud emails and Outlook.com aliases. Switching to gmail suddenly confirmations arrive. It's frustrating. Sample size of a few, but I am starting to think that companies who aren't Google are starting to lose the spam war in a way that is leading to blackholing valid messages :(
Re:Data allegedly stolen from 560M Ticketmaster users by cush on Friday May 31, 2024 @12:39PM (#40537245)
How else would it work? It’s incredibly convenient. The option to create a new email is presented on signup forms, or you can open Hide My Email settings and generate one. I have hundreds of emails this way
Re:Data allegedly stolen from 560M Ticketmaster users by mariusor on Friday May 31, 2024 @01:15PM (#40537750)
> How else would it work?

Like grandparent said: by having a catch-all email address on a domain. Then emails that are being sent to invalid email accounts on that domain end up in that mailbox.

Re:Data allegedly stolen from 560M Ticketmaster users by cush on Saturday June 01, 2024 @12:23AM (#40542855)
I’m not sure that idea was thought through. An infinite number of addresses that all point to the same inbox is effectively the same as having one address
Re:Data allegedly stolen from 560M Ticketmaster users by mariusor on Saturday June 01, 2024 @04:00AM (#40543777)
The point of having multiple addresses delivering to the same mailbox is to be able to use per service custom emails. The grand-grand parent wanted a ticketmaster specific email, so if they sell their data, or it gets leaked, they know from the email address it was from ticketmaster, or another service.

Another commenter in the thread presented how their company "normalizes" gmail addresses by removing "." character and "+..." suffixes, so users don't abuse their system by creating multiple accounts with what is basically the same email. Having a catch-all mailbox allows people to circumvent this "security" measure.

I'm imagining that you actually want to have separate emails pointing to separate mailboxes, and for that case indeed, your solution is better, but for the life of me I can't imagine why anyone would prefer having to check multiple emails, instead of a single one. :D

Re:Data allegedly stolen from 560M Ticketmaster users by cush on Saturday June 01, 2024 @04:40PM (#40548908)
Yeah I get it, just disagree that it circumvents anything. If emails actually worked this way then leaking the domain would be effectively the same as leaking an email is today. The + scheme doesn’t work because of the aforementioned normalization, and this domain thing wouldn’t work for the exact same reason - whoever had the leaked email could just send an email to <anything-they-want>@<yourdomain> and it’s all the same
Re:Data allegedly stolen from 560M Ticketmaster users by nikcub on Friday May 31, 2024 @03:11PM (#40539114)
1password has support for a custom domain. I bought an old generic webmail provider domain that is now defunkt and use that.

I also use random name aliases on each signup. Even if you aggregate multiple breaches I doubt anybody would link it to an individual (me).

The big remaining issue is payments. I use multiple cards and rotate them regularly (I don't have access to privacy.com or similar where I am based).

I believe this is the future - feed each service you signup to a new set of information and keep track in a password managers. Most services don't care what your real name is (I've been using an alias on services like Uber for ~10+ years).

icloud is also a good option - but I don't want to signal being an iCloud user.

Re:Data allegedly stolen from 560M Ticketmaster users by cush on Friday May 31, 2024 @12:34PM (#40537192)
Based on my experience, this feature might as well not exist.