admin管理员组

文章数量:1131405

Let's say I am on the webshopA site where an auth cookie is stored - it is set to SameSite none unfortunately. Then I enter webshopB into the address bar and I press enter.

--> Now if webshopB owner checks the server logs, she/he will find my auth cookie from webshopA.

Is my understanding correct? So basically even if webshopB is not a malicious website, it still accessed my private information.

It is so hard for me to visualize this, I am a beginner. Thank you.

Let's say I am on the webshopA site where an auth cookie is stored - it is set to SameSite none unfortunately. Then I enter webshopB into the address bar and I press enter.

--> Now if webshopB owner checks the server logs, she/he will find my auth cookie from webshopA.

Is my understanding correct? So basically even if webshopB is not a malicious website, it still accessed my private information.

It is so hard for me to visualize this, I am a beginner. Thank you.

Share Improve this question asked Jan 7 at 23:59 JohnesJohnes 495 bronze badges 1
  • The answer to your question is probably "no" but it's actually impossible to say without knowing (1) the full URL for webshopA and webshopB and (2) the rest of the cookie attributes (eg Domain and Path). But in general a cookie is never delivered to an entirely different site than the one it is set on, and unless your browser is atypical or misconfigured, even a cookie declared broadly (eg Domain=.com will not one honored by the browser. – gwcoffey Commented Jan 8 at 0:21
Add a comment  | 

1 Answer 1

Reset to default 0

Your question is not related to SameSite.

First, if SameSite=None is set, the following becomes possible:

You are originally logged in at webshopA, and the cookie has SameSite=None specified.

Next, you navigate to webshopB, and from a page on webshopB, you navigate to a page on webshopA using the POST method.

In this case, the cookie with SameSite=None is sent to webshopA.

If this cookie has SameSite=Lax, it will not be sent to webshopA with the POST method. If it's the GET method, it will be sent to webshopA.

SameSite=None does not cause cookies to be sent to other sites. It changes the behavior when navigating from other sites.

本文标签: