New issue
Advanced search Search tips

Issue 617198 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Same-site cookie prevents extensions to make CORS request

Project Member Reported by zluo@google.com, Jun 3 2016

Issue description

From mkwst@: 

"It probably would interfere with extensions in the current implementation, assuming that the extension is making a request directly from its background page to the mail feed endpoint. Likewise, if an injected content script was making the request, the same-site status would be dependent on the context in which the script was injected. We could mitigate that by whitelisting `chrome-extension://` initiators as being same-site for these purposes, but I guess I need to think a little bit about whether or not that's a good idea."
 

Comment 1 by f...@chromium.org, Jun 3 2016

Is this a security bug, or a feature request to change how CORS applies to extension contexts?

Comment 2 by zluo@google.com, Jun 3 2016

Not strictly a security bug, I choose the type since it's about a feature that's related to security :) Feel free to change type/component.

The primary goal would be tracking the discussion on the pros/cons of supporting CORS requests from extension contexts w.r.t same-site cookies, and make a final decision on the matter.

Comment 3 by f...@chromium.org, Jun 3 2016

Components: Platform>Extensions Security Blink>SecurityFeature
Labels: -Type-Bug-Security -Restrict-View-SecurityTeam Type-Bug
Status: Available (was: Unconfirmed)
Cool, opening it up for discussion then.
Project Member

Comment 4 by sheriffbot@chromium.org, Jun 4 2016

Labels: Hotlist-Google

Comment 5 by mkwst@chromium.org, Feb 24 2017

Components: -Security Internals>Network>Cookies
Labels: Pri-3
Owner: rdevlin....@chromium.org
rdevlin.cronin@: WDYT?

Marking as low-priority, as samesite cookies aren't widely used; we should make a decision here, though, as I hope they'll be more widely used in the future. :)
I have a website with same-site:lax set on JSESSIONID cookie. Next to that I have a Chrome extension (custom developer tool) that is doing AJAX request on the same site to visualize some information from the website that is being developed.

Each request on the website gets newly assigned JSESSIONID because AJAX request from the extension that automatically happens between two regular requests somehow "resets" the cookie.

I understand that (and why) extensions behave as "external" domains. But in such situation I'd expect that cookies will be isolated one from another. But it seems that the requests somehow affects the JSESSION cookie written by the main browser request on the web application.

Is there any source that would describe internals of the samesite implementation? Is there a way how to allow extension to access cookies protected by samesite attribute or do I need to skip samesite attribute of JSESSIONID in "developer" mode to enable this use-case?

Thank you.

Comment 7 by est...@chromium.org, Nov 10 2017

Labels: Hotlist-EnamelAndFriendsFixIt

Comment 8 by est...@chromium.org, Feb 18 2018

Labels: -Hotlist-EnamelAndFriendsFixIt
Status: Assigned (was: Available)

Sign in to add a comment