News for hackers. Stuff that matters.
Re:Shifting Cyber Norms: Microsoft security POST-ing to you by diggan on Thursday January 23, 2025 @09:39AM (#42804447)
> Microsoft’s security scanning will now not only visit the links you mail out, they will also run the JavaScript on your page, and will also send out any POSTs generated by that JavaScript:

It seems to me that someone misunderstood how to implement the logic on the frontend here. You're not supposed to send off a POST request directly as the page has been loaded to exchange the tokens, but require the user to click on a button to confirm the activity.

So the flow would be:

- "Send email with url+token > Frontend loads, shows button to user to confirm > User clicks button and exchange happens".

Instead, wrong implementations do something like this:

- "Send email with url+token > Frontend loads and exchange happens", which we've known for years to not work correctly, because of this very issue.

Discourse for example implemented this perfectly, so if you need an example, that would be where I'd go.

(I know it sucks that scrapers/crawlers do a lot of horrible shit, it truly does. But we've dealt with this for years now, it's not a new thing and it won't be the last shitty thing they do)

Re:Shifting Cyber Norms: Microsoft security POST-ing to you by RamblingCTO on Thursday January 23, 2025 @11:08AM (#42805246)
Because of this I always implement magic links with an additional link to click. Robust and easy and not a thing you do 100 times a day anyway.
Re:Shifting Cyber Norms: Microsoft security POST-ing to you by devdudect on Thursday January 23, 2025 @01:56PM (#42806871)
Microsoft's Office365 nicely clicks the links for you. Had this issue with Webhelp's emails where Microsoft was nicely cancelling the receipients transport by clicking on every Cancel link on the page and clicking on the javascript confirm link to cancel the transport within 20 seconds of their staff booking transport. Quite annoying. Ended up having to block large parts of Microsoft's IP ranges.
Re:Shifting Cyber Norms: Microsoft security POST-ing to you by RamblingCTO on Friday January 24, 2025 @09:03AM (#42813110)
Wait they click on buttons in your experience?
Re:Shifting Cyber Norms: Microsoft security POST-ing to you by itsTyrion on Wednesday February 05, 2025 @12:06PM (#42951619)
They’re clicking the buttons??
Re:Shifting Cyber Norms: Microsoft security POST-ing to you by formerly_proven on Thursday January 23, 2025 @10:11AM (#42804784)
What about double opt-in links? What about unsubscribe links? Do these need to be triple opt-in now because of Microsoft?
Re:Shifting Cyber Norms: Microsoft security POST-ing to you by diggan on Thursday January 23, 2025 @10:17AM (#42804840)
> now because of Microsoft?

I'm not sure why people believe this to be a new issue, I think the first time I myself implemented a work around for this issue was like 4 years ago, and here is a Stackoverflow Question about it from 7 years ago: https://stackoverflow.com/questions/43443947/how-to-stop-e-m...

Outlook/Microsoft is not the only ones who do this either, when I first had to work around it myself it was because it was happening in gmail if I remember correctly.

Re:Shifting Cyber Norms: Microsoft security POST-ing to you by formerly_proven on Thursday January 23, 2025 @11:02AM (#42805213)
Accessing links (GET), yes, executing JS and POSTing is the new thing. Putting an XHR in DOMContentLoaded was the workaround for the behavior you are talking about.
Re:Shifting Cyber Norms: Microsoft security POST-ing to you by diggan on Thursday January 23, 2025 @11:19AM (#42805340)
You misunderstood the submission article and the problem if you think Microsofts scanner is POSTing by itself.

> Putting an XHR in DOMContentLoaded

Since the first time I encountered this problem with my users (4 years ago at least), that was never a solution that worked for everyone.

Re:Shifting Cyber Norms: Microsoft security POST-ing to you by mschuster91 on Thursday January 23, 2025 @10:12AM (#42804789)
> You're not supposed to send off a POST request directly as the page has been loaded to exchange the tokens, but require the user to click on a button to confirm the activity.

Since requiring the user to do anything drastically reduces the go-through rate, the current "standard" is to use either a meta-refresh tag, a HTTP Refresh header [1], setting location.href from JS or a <form> that gets submitted via JavaScript, and a <button> inside a <noscript> for those that don't do JS.

Used to be enough but nowadays content scanners run legitimate chromium embedded and whatnot, which obviously trips over at least the refresh tag/header and the automated Javascript solutions. And that's the problem.

[1] https://en.wikipedia.org/wiki/Meta_refresh

Re:Shifting Cyber Norms: Microsoft security POST-ing to you by diggan on Thursday January 23, 2025 @10:20AM (#42804868)
> And that's the problem.

Which again, it's a known problem, existed for many years already and we have a work around for. If you want to do POST requests from URLs sent via email/other communication platforms, you need to make it so the user confirms the activity.

Users who wanted to sign in and have to press a button after loading the page instead of just logging them in won't suddenly not want to login. They have a clear purpose when clicking the link, regardless if they have to click one button afterwards or not.

And besides, if you don't implement it like that, you'll have even more users dropping off because they literally won't be able to sign in at all, no matter how badly they want to.

Re:Shifting Cyber Norms: Microsoft security POST-ing to you by mschuster91 on Thursday January 23, 2025 @10:58AM (#42805179)
> Which again, it's a known problem, existed for many years already and we have a work around for.

Not really. Other than Google's crawlers it was rare to see full browser engines or even JS runtimes as part of "security" solutions.

Re:Shifting Cyber Norms: Microsoft security POST-ing to you by diggan on Thursday January 23, 2025 @11:17AM (#42805316)
Both Microsoft and Google been doing this in emails for many years. I linked elsewhere a SO question from 7 years ago talking about this issue for gmail, others mentioned some Microsoft stuff there too.
Re:Shifting Cyber Norms: Microsoft security POST-ing to you by im3w1l on Thursday January 23, 2025 @12:40PM (#42806060)
Won't this shift the meta for malware to a "button" that is 99.9% transparent and overlays the whole page in the hope that someone will accidentally click on it when trying to select text or something? A lot better than 0-click ig but might catch people now and then.
Re:Shifting Cyber Norms: Microsoft security POST-ing to you by chinathrow on Thursday January 23, 2025 @03:53PM (#42807944)
So the "current standard" is not working at all any longer.

What is the solution? Like making the user click again might be against GDPR.

https://www.onlinetraveltraining.com/uk/news/posts/why-one-c...

> As of the 1st June 2024, the one-click unsubscribe feature on email is mandatory, and enforced by Google as a requirement for bulk senders.

Re:Shifting Cyber Norms: Microsoft security POST-ing to you by diggan on Thursday January 23, 2025 @05:51PM (#42808896)
Huh? This has nothing to do with the unsubscribe-header thingy. This is about when you for example provide a URL that contains a token in an email, which you exchange for an authentication token once the user visits the URL. Some people implement that page to automatically do the exchange on page load, instead of waiting for the user to click on a button.
Re:Shifting Cyber Norms: Microsoft security POST-ing to you by hulitu on Friday January 24, 2025 @06:17AM (#42812092)
> What is the solution? Like making the user click again might be against GDPR.

Dropping all packets from Microsoft or Google in the firewall ? /s

Re:Shifting Cyber Norms: Microsoft security POST-ing to you by mjl- on Thursday January 23, 2025 @12:51PM (#42806177)
what if microsoft decides they not only want to load the URL in messages, but also click links and click buttons? presumably this is to detect bad/dangerous content. bad people will also just put that dangerous stuff behind a link or button if it's that easy to evade their checking.

or why exactly are they following those links again? perhaps it is for previews instead of "security"?

from the article:

> Over time, it also became OK for software to visit links in email to find out what was behind them.

why would that be OK? if i email a secret link to someone, i fully expect it to stay between the recipient and me. not some company reading along. but that's why i don't have accounts with these types of companies...