unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 1401@debbugs.gnu.org, Karol Hosiawa <hosiawak@gmail.com>
Subject: bug#1401: 23.0.60; url-cookie-handle-set-cookie doesnt check for trusted urls
Date: Sun, 11 Sep 2011 20:16:45 +0200	[thread overview]
Message-ID: <m3d3f7aqr6.fsf@stories.gnus.org> (raw)
In-Reply-To: <wfk5aipa8f.fsf@fencepost.gnu.org> (Glenn Morris's message of "Tue, 02 Dec 2008 15:56:16 -0500")

Glenn Morris <rgm@gnu.org> 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/





  reply	other threads:[~2011-09-11 18:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-21 15:23 bug#1401: 23.0.60; url-cookie-handle-set-cookie doesnt check for trusted urls Karol Hosiawa
2008-12-02  8:26 ` Glenn Morris
2008-12-02 17:03   ` Karol Hosiawa
2008-12-02 19:12     ` Glenn Morris
2008-12-02 20:44       ` Karol Hosiawa
2008-12-02 20:56         ` Glenn Morris
2011-09-11 18:16           ` Lars Magne Ingebrigtsen [this message]
2011-09-12 17:52             ` Glenn Morris
2011-09-13 19:38               ` Lars Magne Ingebrigtsen
2011-09-13 21:20                 ` Glenn Morris
2011-09-13 21:22                   ` Lars Magne Ingebrigtsen
2011-09-13 21:33                     ` Glenn Morris
2011-09-15  0:33                       ` Lars Magne Ingebrigtsen
2011-09-15  1:24                         ` Stefan Monnier
2011-09-15  5:42                           ` Lars Magne Ingebrigtsen
2012-04-10  1:53                             ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3d3f7aqr6.fsf@stories.gnus.org \
    --to=larsi@gnus.org \
    --cc=1401@debbugs.gnu.org \
    --cc=hosiawak@gmail.com \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).