RE: Cookies Settings Observations

"Mike O'Neill" <[email protected]>
Newsgroups gmane.org.w3c.tag
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mike,

It is often hard for UAs to tell first-party from third-party accesses. For example third-party blocking is being circumvented via redirection. Javascript changes the href of a same-origin anchor tag, e.g. a menu item, to point to a third-party origin with the original href as a query parameter. The third-party server responds with a 302 redirect back to the original href, along with a set-cookies header, when the menu item is clicked.

The browser cannot tell it is “really” a third-party and the user may have no indication they were going to be redirected through the third-party.

The first-party attribute would have to stop cookies being sent in these kind of redirected requests.

Mike O’Neill



From: Mike West [mailto:[email protected]]
Sent: 28 January 2015 09:34
To: Yehuda Katz
Cc: Daniel Appelquist; TAG List
Subject: Re: Cookies Settings Observations

On Mon, Jan 26, 2015 at 9:12 PM, Yehuda Katz <[email protected]> wrote:
I recently asked around about why we don't have a CSP mechanism (or other opt in) to tell the browser that the cookies of a particular domain are "same origin only".
Ah, cookies. What a mess.

I took a stab at something like this in https://tools.ietf.org/html/draft-west-first-party-cookies-00. There seems to be vague interest in the HTTP WG, but I haven't gotten around to putting a prototype together yet.

- -mike

- --
Mike West <[email protected]>, @mikewest

Google Germany GmbH, Dienerstrasse 12, 80331 München, Germany, Registergericht und -nummer: Hamburg, HRB 86891, Sitz der Gesellschaft: Hamburg, Geschäftsführer: Graham Law, Christine Elizabeth Flores
(Sorry; I'm legally required to add this exciting detail to emails. Bleh.)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (MingW32)
Comment: Using gpg4o v3.4.19.5391 - http://www.gpg4o.com/
Charset: utf-8

iQEcBAEBAgAGBQJUyOVVAAoJEHMxUy4uXm2J+AYIAKpEFW8wQA/RPXX3E8DBhCMl
0NtECXATmuHZG3qaHnY0v5cw1+yrOkNTVHjwCRHuDdVJCwOwWuTx+BTH2Zw8Yqmf
9QxgZF7d95OZnOswKT+db6aR8AH+oJ8fUSWzbkOTEPtyLmqk23Xk6wzomBlhvYGj
6s0LBIzI33MJLLi/J957OajQMrWzTp2BeWxT6W6DXW3womfPKEFmfeTcerBj7peU
oL6eoAvK42jXpKeANwl2m7yt34ZpOW5NM7xXJK2RIleksm3elbU0XudA+Vm/6BaU
mq3ny4vayrEAQ7geNHXD1gYAr8BY7ZroMFHHgxcFTqq9s6WxSFv5oX668fGxdb4=
=Ykm7
-----END PGP SIGNATURE-----
PGPexch.htm (text/html, 6.8 KB)
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Mike, <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>It is often hard for UAs to tell first-party from third-party accesses. For example third-party blocking is being circumvented via redirection. Javascript changes the href of a same-origin anchor tag, e.g. a menu item, to point to a third-party origin with the original href as a query parameter. The third-party server responds with a 302 redirect back to the original href, along with a set-cookies header, when the menu item is clicked. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The browser cannot tell it is &#8220;really&#8221; a third-party and the user may have no indication they were going to be redirected through the third-party.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The first-party attribute would have to stop cookies being sent in these kind of redirected requests.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Mike O&#8217;Neill<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Mike West [mailto:[email protected]] <br><b>Sent:</b> 28 January 2015 09:34<br><b>To:</b> Yehuda Katz<br><b>Cc:</b> Daniel Appelquist; TAG List<br><b>Subject:</b> Re: Cookies Settings Observations<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><div><div><p class=MsoNormal>On Mon, Jan 26, 2015 at 9:12 PM, Yehuda Katz &lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt; wrote:<o:p></o:p></p><p>I recently asked around about why we don't have a CSP mechanism (or other opt in) to tell the browser that the cookies of a particular domain are &quot;same origin only&quot;.<o:p></o:p></p><div><p class=MsoNormal>Ah, cookies. What a mess.<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>I took a stab at something like this in&nbsp;<a href="https://tools.ietf.org/html/draft-west-first-party-cookies-00">https://tools.ietf.org/html/draft-west-first-party-cookies-00</a>. There seems to be vague interest in the HTTP WG, but I haven't gotten around to putting a prototype together yet.<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>-mike<o:p></o:p></p></div><div><div><div><div><div><div><p class=MsoNormal style='background:white'><span style='font-family:"Arial","sans-serif";color:#222222'><br>--<br>Mike West &lt;<a href="mailto:[email protected]" target="_blank"><span style='color:#1155CC'>[email protected]</span></a>&gt;,&nbsp;</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222'>@mikewest</span><span style='font-family:"Arial","sans-serif";color:#222222'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-family:"Arial","sans-serif";color:#222222'><o:p>&nbsp;</o:p></span></p><div><p class=MsoNormal style='background:white'><span style='font-family:"Arial","sans-serif";color:#222222'>Google Germany GmbH, Dienerstrasse 12, 80331 M&#252;nchen, Germany,&nbsp;Registergericht und -nummer: Hamburg, HRB 86891,&nbsp;</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222'>Sitz der Gesellschaft: Hamburg,&nbsp;Gesch&#228;ftsf&#252;hrer: Graham Law, Christine Elizabeth Flores</span><span style='font-family:"Arial","sans-serif";color:#222222'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-family:"Arial","sans-serif";color:#222222'>(Sorry; I'm legally required to add this exciting detail to emails. Bleh.)<o:p></o:p></span></p></div></div></div></div></div></div></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></div></div></body></html>
PGPexch.htm.sig (application/octet-stream, 287 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.