Subject: Re: bug#1401: 23.0.60; url-cookie-handle-set-cookie doesnt check for trusted urls

From: Lars Magne Ingebrigtsen <[email-masked]>
Date: Sun, 11 Sep 2011 20:16:45 +0200

Glenn Morris <[email-masked]> writes:

> (url-cookie-host-can-set-p "images.google.com" ".google.com")
>
> returns non-nil (because "com" is in url-cookie-two-dot-domains).
>
> And so does:
>
> (setq url-cookie-two-dot-domains "\\.nl\\'")
> (url-cookie-host-can-set-p "images.google.nl" ".google.nl")
>
> But having
>
> (url-cookie-host-can-set-p "foo.co.uk" ".co.uk")
>
> return non-nil would be bad.
>
> It cetainly seems like this problem to me:
>
> http://my.opera.com/yngve/blog/show.dml/267415

I think you're right.  Nobody proposed a solution, though.  :-)

Is there a list of known safe two-dot domains that we could use out
there somewhere?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/