News for hackers. Stuff that matters.
Re:Promiscuous cookies and their impending death via the Sam... by download13 on Saturday January 04, 2020 @01:12PM (#21956362)
This won't stop cookie-based tracking though, they can just set "SameSite=None" with their cookies
Re:Promiscuous cookies and their impending death via the Sam... by nikbackm on Saturday January 04, 2020 @01:32PM (#21956491)
Wouldn't that make it trivial to block them all?
Re:Promiscuous cookies and their impending death via the Sam... by jacobparker on Saturday January 04, 2020 @01:39PM (#21956537)
You mean block all SameSite=None cookies? They have legitimate uses too.

Consider that SameSite=Strict even breaks cross-origin links (<a> tags): if a 3rd party site links to you and a user clicks that link, the GET will be sent without cookies.

To get value out of Strict for typical sites the new pattern is to have two cookies: one is SameSite=None and allows you to do GET/HEAD/etc. requests ("read-only operations", assuming you are following those parts of the spec) and one that is SameSite=Strict and allows you to do POST/etc. ("write operations").

If https://evil.com adds a link to your site (an <a> tag) you can allow deep linking by only checking for the None cookie. The strict cookie won't be sent for <a> tags. But POSTs/form-submissions, and any page/resource you don't want to allow deep-linking for, you would check for both the cookies.

I've seen this pattern referred to as "reader and writer cookie pairs".

---

This really is specifically aimed at killing CSRF attacks. It's not about tracking either way (it's orthogonal to that).

Re:Promiscuous cookies and their impending death via the Sam... by Buge on Saturday January 04, 2020 @11:53PM (#21959714)
Why None instead of Lax? The uses cases you mentioned for the None cookie seem like they would still work with a Lax cookie.
Re:Promiscuous cookies and their impending death via the Sam... by jacobparker on Sunday January 05, 2020 @02:18AM (#21960136)
Ah, good point. So it depends on your site. Some sites need to do things like serve embeddable content or be an OAuth identity provider, etc., and SameSite=None is required in those cases. Sorry for not being more clear about that.
Re:Promiscuous cookies and their impending death via the Sam... by michaelt on Saturday January 04, 2020 @07:34PM (#21958740)
In Firefox at least, it's been possible to block third-party cookies for... as long as I can remember?

And a sensible security move - it protects you against XSRF protection with very low usability cost.