From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <577ed7ae0811210723s786a74c1l5f4292e653f04af1@mail.gmail.com> <577ed7ae0812020903g62c2394fha38f29de8e3f807a@mail.gmail.com> <18741.34990.817107.710972@fencepost.gnu.org> <577ed7ae0812021244u16eec55egaaf1d94628916ee7@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1315765860 10420 80.91.229.12 (11 Sep 2011 18:31:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 11 Sep 2011 18:31:00 +0000 (UTC) Cc: 1401@debbugs.gnu.org, Karol Hosiawa To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 11 20:30:56 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R2onw-0007sA-1e for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Sep 2011 20:30:56 +0200 Original-Received: from localhost ([::1]:39358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2onv-0006AZ-I9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Sep 2011 14:30:55 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2ono-0005xz-5E for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2011 14:30:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R2onm-0003cP-TI for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2011 14:30:48 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2onm-0003cL-LT for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2011 14:30:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R2orv-0008Cb-7S; Sun, 11 Sep 2011 14:35:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Sep 2011 18:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1401 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 1401-submit@debbugs.gnu.org id=B1401.131576608931491 (code B ref 1401); Sun, 11 Sep 2011 18:35:03 +0000 Original-Received: (at 1401) by debbugs.gnu.org; 11 Sep 2011 18:34:49 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2ora-0008Bh-Rq for submit@debbugs.gnu.org; Sun, 11 Sep 2011 14:34:49 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2orW-0008BJ-QR for 1401@debbugs.gnu.org; Sun, 11 Sep 2011 14:34:40 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R2onH-0005BE-CF; Sun, 11 Sep 2011 20:30:15 +0200 In-Reply-To: (Glenn Morris's message of "Tue, 02 Dec 2008 15:56:16 -0500") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Nadja's _Desire In Uneasiness_: "Deterritorialization" X-MailScanner-ID: 1R2onH-0005BE-CF MailScanner-NULL-Check: 1316370615.54214@OzwkdEo5wT0twjgxevVnbA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 11 Sep 2011 14:35:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50954 Archived-At: Glenn Morris 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/