News for hackers. Stuff that matters.
Re:Gmail, Yahoo announce new 2024 authentication requirement... by EvanAnderson on Monday October 30, 2023 @04:48PM (#38075569)
Hijacking the thread: I do some "bulk" sending for a 501(c)3 I volunteer for. I include unsubscribe links that go to a form with a submit button (because I want the unsubscribe to be a POST request). Each link has a random opaque identifier in the query string. Something like:

hxxp://example.com/unsubscribe?id=abcd1234

A couple years ago I noticed that MSFT IPs hitting my unsubscribe links with invalid identifiers on the quest string. Anybody ever seen that?

Re:Gmail, Yahoo announce new 2024 authentication requirement... by exabrial on Monday October 30, 2023 @05:27PM (#38076150)
In a previous life, we prevented the GET url problem by having a javascript POST and forward to a secondary URL.

This allows everything to be "one click" (which honestly is a good thing) but prevents crawlers from accidentally triggering the unsubscribe.

Not sure this still works today and obviously this is not legal advice.

Re:Gmail, Yahoo announce new 2024 authentication requirement... by cxr on Monday October 30, 2023 @05:57PM (#38076498)
Not an answer to the question they asked.
Re:Gmail, Yahoo announce new 2024 authentication requirement... by Ensorceled on Monday October 30, 2023 @08:14PM (#38077915)
You could imagine they started their post with "Yes, it's a pretty common problem here's what we did ..." and then it makes sense.
Re:Gmail, Yahoo announce new 2024 authentication requirement... by cxr on Monday October 30, 2023 @11:04PM (#38079741)
No, it doesn't. The original questioner is already aware of the extremely common phenomenon where mail providers scan links in emails. That's not what the question is about. The first comment contains a very specific question about something different. The response is derailing the discussion.
Re:Gmail, Yahoo announce new 2024 authentication requirement... by Zambyte on Monday October 30, 2023 @06:52PM (#38077064)
It seems like the more ideal solution would be to block the malicious IPs instead of lowering the accessibility of your site, no?
Re:Gmail, Yahoo announce new 2024 authentication requirement... by hnick on Monday October 30, 2023 @10:47PM (#38079595)
I think some crawlers run JS, because a lot of the web simply won't work without JS to initialise the page state these days.

You can use captcha or similar, one workaround I've seen has a submit that is hidden so never clicked by real people then a visible submit that sets a hidden input and clicks the other one which requires the hidden input... not foolproof but avoids some accidents.

Re:Gmail, Yahoo announce new 2024 authentication requirement... by 8organicbits on Tuesday October 31, 2023 @10:11AM (#38085115)
A crawler that follows links found in emails and sends POST requests / submits forms will cause so much havoc. It could buy things, validate account sign-ups, delete data, etc. I have a hard time believing the answer isn't to ask users to switch to a normal email provider.
Re:Gmail, Yahoo announce new 2024 authentication requirement... by hnick on Tuesday October 31, 2023 @09:24PM (#38093526)
I know web search at least runs JS to get better results. Not sure about email pre-fetch but I assume they do. I don't think crawlers click buttons though unless they are malicious so it's probably fine for unique email links.
Re:Gmail, Yahoo announce new 2024 authentication requirement... by nwienert on Monday October 30, 2023 @04:51PM (#38075607)
I thought it was part of CAN SPAM that you can’t require a second action and that was why the big email sending providers moved to that.
Re:Gmail, Yahoo announce new 2024 authentication requirement... by jcrawfordor on Monday October 30, 2023 @05:04PM (#38075801)
It's not really common for clicking a link to immediately unsubscribe, almost everyone requires you to click a button after navigating to the unsubscribe link. Otherwise you have issues with link scanners unsubscribing your recipients without their knowledge. There are some more complex ways to approach this with JavaScript checks for "real browser" but IMO these are more likely to create frustrating friction to unsubscribing (by not working if the user has an adblocker for example) than having the user click a button.

I've seen this pattern of unsubscribe link, then click button approved as CAN-SPAM compliant more than once so I don't think there's a legal concern. The CAN-SPAM rule seems more targeted at the systems you used to see a lot that required the user to log into their account, type in their email address, or figure out a complicated "communications preferences" list to use the unsubscribe form.

check out https://www.ecfr.gov/current/title-16/chapter-I/subchapter-C...

It's a little fuzzy to me how exactly to interpret this but I think you could reasonably read it as allowing even unsubscribe pages that require you to type your email address in again (even though I detest these and don't think the problem they're intended to solve is a meaningful one).

Re:Gmail, Yahoo announce new 2024 authentication requirement... by pests on Tuesday October 31, 2023 @02:38AM (#38081024)
> unsubscribe pages that require you to type your email address in again

These are fine for me if the email is prepopulated.

Re:Gmail, Yahoo announce new 2024 authentication requirement... by EvanAnderson on Monday October 30, 2023 @04:55PM (#38075672)
So many email security systems preemptively access every URL in messages. I found that I receive a GET for virtually every unsubscribe URL I send out.

I don't read clicking a "confirm" button as a second action. The attorney didn't either. He also said CAN SPAN doesn't apply to a 501(c)3. I still try to comply to be a good citizen.

Re:Gmail, Yahoo announce new 2024 authentication requirement... by jabroni_salad on Monday October 30, 2023 @04:59PM (#38075728)
You can require a second action such as clicking a button.

What you can't do is take them to a page that says "to unsubscribe, send a certified letter to our headquarters and wait 90 business days". The entire transaction must be completed at the page you link to.

Re:Gmail, Yahoo announce new 2024 authentication requirement... by hnick on Monday October 30, 2023 @10:50PM (#38079634)
Or, as I so often get, ask me to log in to "my account". Which is not my account, it's someone else's account but they don't know their own email address, so logging in is probably technically unauthorised access to computer systems and highly illegal.

Bonus points when contacting support requires me to log in to "my account" too.

Re:Gmail, Yahoo announce new 2024 authentication requirement... by KeepFlying on Monday October 30, 2023 @04:54PM (#38075658)
Probably true but how do you handle autodetonation of email links in that case? Too many emails servers will click links automatically to check for issues.

That was my understanding at least.

Re:Gmail, Yahoo announce new 2024 authentication requirement... by justinator on Monday October 30, 2023 @04:58PM (#38075720)
Unsubscribe link goes to a page that has a form that's automatically submitted via JavaScript. Disable that for the first 5 minutes of that link's life to get around automated things.
Re:Gmail, Yahoo announce new 2024 authentication requirement... by bruckie on Monday October 30, 2023 @08:15PM (#38077929)
Google requires senders to use the `List-Unsubscribe-Post` and `List-Unsubscribe` headers, which use a POST request to avoid this problem.

Details: https://support.google.com/mail/answer/81126#zippy=%2Crequir...

(I work for Google, but on something totally unrelated, and don't speak for them or have any inside knowledge. I was just curious and looked it up.)

Re:Gmail, Yahoo announce new 2024 authentication requirement... by tomjen3 on Monday October 30, 2023 @05:22PM (#38076080)
If you are sending out HTML emails, cant you just make the unsubscribe button a submit button in the form?
Re:Gmail, Yahoo announce new 2024 authentication requirement... by EvanAnderson on Monday October 30, 2023 @05:23PM (#38076095)
I am sending text-only messages. (I hate HTML email, personally.)
Re:Gmail, Yahoo announce new 2024 authentication requirement... by ClassyJacket on Monday October 30, 2023 @05:02PM (#38075782)
Yes, I know I've seen someone talk about this before, I think it's their link safety checking thing:

https://techcommunity.microsoft.com/t5/security-compliance-a...

Re:Gmail, Yahoo announce new 2024 authentication requirement... by EvanAnderson on Monday October 30, 2023 @05:05PM (#38075815)
It's odd that they're, essentially, fuzzing my app.
Re:Gmail, Yahoo announce new 2024 authentication requirement... by vaporary on Monday October 30, 2023 @05:43PM (#38076352)
Agreed, it's curious! I wonder if they would still fuzz it if you changed the URL scheme to include the identifier as part of the URL path, rather than as a parameter? e.g., hxxp://example.com/unsubscribe/abcd1234

Please report back if you try it :-)

Re:Gmail, Yahoo announce new 2024 authentication requirement... by procflora on Monday October 30, 2023 @07:02PM (#38077169)
I could swear I've had that thing burn a one-time token for a password reset email before too, but it's hard to prove as a user. Doesn't feel great!
Re:Gmail, Yahoo announce new 2024 authentication requirement... by local_crmdgeon on Monday October 30, 2023 @05:04PM (#38075809)
You may not have to comply with CAN SPAM legally, but I absolutely hate when orgs do this.

Please try to make the world a better place instead of doing the legal minimum.

Re:Gmail, Yahoo announce new 2024 authentication requirement... by EvanAnderson on Monday October 30, 2023 @05:07PM (#38075844)
What else should I do? The list is double opt-in, every message includes a one-click unsubscribe link, full contact info for the organization is included, and I send text-only.
Re:Gmail, Yahoo announce new 2024 authentication requirement... by austhrow743 on Monday October 30, 2023 @05:21PM (#38076070)
My reading is that in your comment they replied to, you said you require confirmation for unsubscription.

One click unsubscription is presumably what they want.

Re:Gmail, Yahoo announce new 2024 authentication requirement... by EvanAnderson on Monday October 30, 2023 @05:26PM (#38076134)
I require a button to be clicked to confirm. No entry, no JavaScript, nothing else. Just something to make a POST request because I receive GET requests for almost every URL I send out.

My experience is that every unsubscribe goes to a form w/ a submit button. Shitty ones make you type your email address. (Mine doesn't.)

Re:Gmail, Yahoo announce new 2024 authentication requirement... by austhrow743 on Monday October 30, 2023 @05:43PM (#38076350)
I dont have a problem with that but it’s definitely a second click.

Just did a bit of unsubscribing and sydneytools.com.au, abc.net.au, squabblr.co, bundlehunt.com, and healingstreams.tv all one click unsubscribe.

Re:Gmail, Yahoo announce new 2024 authentication requirement... by jacobwg on Monday October 30, 2023 @06:05PM (#38076591)
I've seen a hybrid where you have a form with a button to confirm, but include JavaScript to auto-submit the form on load. For the crowd that has JS disabled, they can click the button, but otherwise it's one-click from the email.

No idea if this holds if/when the email crawler bots start executing JS on crawl.

Re:Gmail, Yahoo announce new 2024 authentication requirement... by sbuk on Monday October 30, 2023 @06:18PM (#38076739)
It'll likely be the URL rewriting feature in Microsoft 365 and Outlook.com. The URL will be scanned before it's rewritten.
Re:Gmail, Yahoo announce new 2024 authentication requirement... by yard2010 on Monday October 30, 2023 @07:02PM (#38077171)
I've never understood why some emails are ending with :J? I thought it was a meme I didn't understand. It turns out it's just Outlook doing its thing
Re:Gmail, Yahoo announce new 2024 authentication requirement... by snthd on Monday October 30, 2023 @07:47PM (#38077632)
Some versions of outlook autocorrected a smiley to a J in the wingdings font.
Re:Gmail, Yahoo announce new 2024 authentication requirement... by mschuster91 on Monday October 30, 2023 @09:49PM (#38079099)
It's not just Outlook. Teams is messing that up just as well, and so did RiF on Android.

Turns out, dealing with Unicode beyond 2 bytes (i.e. anything above ASCII and the common Latin characters) is still a problem in 2023.

Re:Gmail, Yahoo announce new 2024 authentication requirement... by ranting-moth on Monday October 30, 2023 @07:07PM (#38077218)
I might click an "unsubscribe" link in an email from an org that I know. But I'm not going to interact with the page that comes up.

If I get another email from that org, I click "report spam".

Re:Gmail, Yahoo announce new 2024 authentication requirement... by jeroenhd on Monday October 30, 2023 @07:45PM (#38077609)
Several antivirus scanners and mail providers open links to check for malware. I believe they add some randomness to either bust through cache or to detect if the URL is encoded as an exact match (some exploit kits will redirect to google.com if you alter the URL in any way or after x requests to the same URL).
Re:Gmail, Yahoo announce new 2024 authentication requirement... by MisterBastahrd on Monday October 30, 2023 @07:50PM (#38077661)
Some companies attempt to hit every link in order to cache the link and then embed their own link so that they can track those links, and also to examine for malware. I work for a marketing SaaS and what made us break away from the monolith structure was that our server was getting blasted to hell and back by the sheer volumes of tracking links that were automatically followed by email providers.
Re:Gmail, Yahoo announce new 2024 authentication requirement... by rbut on Monday October 30, 2023 @08:14PM (#38077913)
Yes have seen this is in a couple of my SaaS applications.

If it's in the querystring then they essentially fuzz it by changing some part(s) of the value. I noticed this because I use signed tokens and it raised an exception in Sentry when the signed token was invalid.

I ended up moving the signed token into the URL itself and the problem went away. eg. /unsubscribe/abcd1234/

Re:Gmail, Yahoo announce new 2024 authentication requirement... by Synchro on Tuesday October 31, 2023 @05:24AM (#38082134)
This is exactly what the list-unsubscribe-post header from RFC8058 provides: https://www.rfc-editor.org/rfc/rfc8058. The unsubscribe button that gmail, Apple Mail and others displays is driven by that; it's not a gmail feature.

Weirdly, if google thinks you're a dodgy sender they won't display the button, which seems counterproductive to me.