Secure-only cookies seem to be allowed on insecure sites on Canary and Chromium
Reported by
93m4qau...@gmail.com,
Jan 9 2018
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3315.2 Safari/537.36 Steps to reproduce the problem: 1. Open http://www.chromium.org/developers/how-tos/api-keys. 2. Click on the verbose chip, and then click Cookies. 3. Expand docs.google.com > Cookies and click on the cookie(s) for details. What is the expected behavior? Since the page is insecure, there are no cookies from the page that should only be valid on secure sites. What went wrong? There is a cookie from docs.google.com that should only be valid on secure sites, even though the page is insecure HTTP. See attached screenshot. Did this work before? Yes Seems to work fine on stable - 63.0.3239.132 Chrome version: 65.0.3315.2 Channel: n/a OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version:
,
Jan 9 2018
,
Jan 9 2018
,
Jan 9 2018
It looks like the scenario you're talking about is the following: 1. User visits `http://example.com/` 2. `http://example.com/` embeds `https://secure.com/` 3. `https://secure.com/` receives cookies. Is that correct? If so, it's working as intended: the `secure` attribute doesn't walk up the ancestor chain to determine whether the frame is a secure context. It ensures that the cookie isn't sent in the clear over a plaintext connection. If you're loading `http://secure.com/` and getting cookies marked `secure`, then that's a different story entirely.
,
Jan 9 2018
>It looks like the scenario you're talking about is the following:...Is that correct? Is that the same scenario applicable to the secure-only docs.google.com cookie on the insecure chromium.org page?
,
Jan 29 2018
Re #5: Yes, when http://chromium.org loads https://docs.google.com, by-design, https://docs.google.com gets its SECURE cookies. These secure cookies are not accessible to the non-secure cross-origin parent page. In the area of cookies, the SECURE attribute refers to connection security, not to the page's overall context. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by krajshree@chromium.org
, Jan 9 2018Labels: -Type-Bug-Regression Triaged-ET M-65 Needs-Triage-M65 OS-Linux OS-Mac Type-Bug
Status: Untriaged (was: Unconfirmed)
175 KB
175 KB View Download