GNU bug report logs - #18600
24.3.94; EWW fails to check https certificates

Previous Next

Package: emacs;

Reported by: Mark H Weaver <mhw <at> netris.org>

Date: Thu, 2 Oct 2014 06:27:02 UTC

Severity: important

Tags: fixed, security

Merged with 16193, 16978

Found in versions 24.3, 24.3.94

Fixed in version 25.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18600 in the body.
You can then email your comments to 18600 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#18600; Package emacs. (Thu, 02 Oct 2014 06:27:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mark H Weaver <mhw <at> netris.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 02 Oct 2014 06:27:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.94; EWW fails to check https certificates
Date: Thu, 02 Oct 2014 01:48:35 -0400
I used EWW to visit an https website that uses a self-signed and
long-expired https certificate.  It failed to notify me of any problem.



In GNU Emacs 24.3.94.1 (i686-pc-linux-gnu, GTK+ Version 3.10.1)
 of 2014-10-02 on localhost
Windowing system distributor `The X.Org Foundation', version 11.0.11202000
Configured using:
 `configure
 CONFIG_SHELL=/gnu/store/wgvrj5q40prd4d1fb0j81n6gxdpqwz79-bash-4.3.27/bin/bash
 SHELL=/gnu/store/wgvrj5q40prd4d1fb0j81n6gxdpqwz79-bash-4.3.27/bin/bash
 --prefix=/gnu/store/6x3z5nwya75jgfs76qkpj25va9iwsqd4-emacs-24.3.94
 --enable-fast-install
 --with-crt-dir=/gnu/store/1zxdnj48g45pwram0s8nprvkkwxzp62b-glibc-2.20/lib'

Important settings:
  value of $LC_ALL: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Summary

Minor modes in effect:
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t

Recent input:
  [removed; irrelevant]

Recent messages:
  [removed; irrelevant]

Load-path shadows:
None found.

Features:
(shadow term ehelp emacsbug sendmail sort gnus-cite mail-extr gnus-async
gnus-bcklg qp gnus-ml disp-table nndraft nnmh nnfolder netrc gnus-agent
gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu
mml2015 epg-config mm-view mml-smime smime dig nntp gnus-cache gnus-sum
nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec
gnus-int gnus-range gnus-win misearch multi-isearch gnutls shr-color
color timezone parse-time help-mode mule-util url-queue network-stream
starttls url-http tls url-gw url-cache url-auth eww mm-url gnus gnus-ems
nnheader wid-edit url url-proxy url-privacy url-expand url-methods
url-history url-cookie url-domsuf url-util url-parse auth-source eieio
byte-opt bytecomp byte-compile cconv eieio-core gnus-util password-cache
url-vars mailcap shr browse-url shell pcomplete comint ansi-color
paredit edmacro kmacro cl-loaddefs cl-lib server w3m-wget w3m-load
magit-bisect magit-key-mode magit diff-mode log-edit easy-mmode message
format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode
mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util help-fns
mail-prsvr mailabbrev mail-utils gmm-utils mailheader ring pcvs-util
add-log geiser-install geiser scheme time-date tooltip electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 8 389222 31229)
 (symbols 24 32379 0)
 (miscs 20 195 588)
 (strings 16 51077 6316)
 (string-bytes 1 1780492)
 (vectors 8 25575)
 (vector-slots 4 590009 18268)
 (floats 8 413 443)
 (intervals 28 3719 319)
 (buffers 512 28)
 (heap 1024 44807 14554))




Severity set to 'serious' from 'important' Request was from Mark H Weaver <mhw <at> netris.org> to control <at> debbugs.gnu.org. (Thu, 02 Oct 2014 18:05:02 GMT) Full text and rfc822 format available.

Severity set to 'important' from 'serious' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 03 Oct 2014 03:01:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18600; Package emacs. (Fri, 03 Oct 2014 23:02:02 GMT) Full text and rfc822 format available.

Message #12 received at 18600 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Mark H Weaver <mhw <at> netris.org>
Cc: 18600 <at> debbugs.gnu.org
Subject: Re: bug#18600: 24.3.94; EWW fails to check https certificates
Date: Fri, 03 Oct 2014 19:01:42 -0400
Mark H Weaver wrote:

> I used EWW to visit an https website that uses a self-signed and
> long-expired https certificate.  It failed to notify me of any problem.

Setting gnutls-verify-error non-nil may help (I don't know what it does
with self-signed certificates).






Forcibly Merged 16193 18600. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 03 Oct 2014 23:41:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18600; Package emacs. (Fri, 03 Oct 2014 23:45:02 GMT) Full text and rfc822 format available.

Message #17 received at 18600 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Mark H Weaver <mhw <at> netris.org>
Cc: 18600 <at> debbugs.gnu.org
Subject: Re: bug#18600: 24.3.94; EWW fails to check https certificates
Date: Fri, 03 Oct 2014 19:44:48 -0400
PS see previous discussion in http://debbugs.gnu.org/16978 .




Merged 16193 16978 18600. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 03 Oct 2014 23:47:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18600; Package emacs. (Sat, 04 Oct 2014 21:35:02 GMT) Full text and rfc822 format available.

Message #22 received at 18600 <at> debbugs.gnu.org (full text, mbox):

From: Ted Zlatanov <tzz <at> lifelogs.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 18600 <at> debbugs.gnu.org, Mark H Weaver <mhw <at> netris.org>
Subject: Re: bug#18600: 24.3.94; EWW fails to check https certificates
Date: Sat, 04 Oct 2014 17:34:39 -0400
On Fri, 03 Oct 2014 19:01:42 -0400 Glenn Morris <rgm <at> gnu.org> wrote: 

GM> Mark H Weaver wrote:
>> I used EWW to visit an https website that uses a self-signed and
>> long-expired https certificate.  It failed to notify me of any problem.

GM> Setting gnutls-verify-error non-nil may help (I don't know what it does
GM> with self-signed certificates).

Emacs will reject such certificates then. I tested that as part of
http://debbugs.gnu.org/16978 and would appreciate Mark's verification.

After 24.4 (now 25.1) is released it will be t by default.  Mark, can we
close this bug since http://debbugs.gnu.org/16978 already has all the info?

Thanks
Ted




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18600; Package emacs. (Sat, 04 Oct 2014 23:26:01 GMT) Full text and rfc822 format available.

Message #25 received at 18600 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 18600 <at> debbugs.gnu.org
Subject: Re: bug#18600: 24.3.94; EWW fails to check https certificates
Date: Sat, 04 Oct 2014 19:24:41 -0400
Ted Zlatanov <tzz <at> lifelogs.com> writes:

> On Fri, 03 Oct 2014 19:01:42 -0400 Glenn Morris <rgm <at> gnu.org> wrote: 
>
> GM> Mark H Weaver wrote:
>>> I used EWW to visit an https website that uses a self-signed and
>>> long-expired https certificate.  It failed to notify me of any problem.
>
> GM> Setting gnutls-verify-error non-nil may help (I don't know what it does
> GM> with self-signed certificates).
>
> Emacs will reject such certificates then. I tested that as part of
> http://debbugs.gnu.org/16978 and would appreciate Mark's verification.

Yes, that works, thanks.

> After 24.4 (now 25.1) is released it will be t by default.  Mark, can we
> close this bug since http://debbugs.gnu.org/16978 already has all the info?

I almost closed the bug myself, but on second thought I think this case
of eww https warrants special consideration, independent of the more
general question of how 'open-gnutls-stream' should behave by default.

There are a few reasons for this:

1. In the case of imaps, smtps, xmpp, etc, the most common use case is
   to connect to a single server only for each of these protocols, and
   very often that's one's own server with self-signed certs.

2. In the case of https, the typical use cases are very different, as
   are the expectations.  When browsing the web, one typically talks to
   a very large number of https servers.  More often than not, these
   servers have certificates signed by a well-known CA.  (Ideally it
   should be possible to disable checking based on URL).

3. Emacs 24.4 will be the first release that includes eww, so there are
   no preexisting users of eww that would be annoyed by suddenly having
   their existing functionality stop working.

With these in mind, I have two recommendations:

* I believe that eww https should check certificates by default in 24.4,
  even though other tls connections are tolerant by default.

* At minimum, it should be possible to enable certificate checking for
  eww https connections while still allowing self-signed certificates
  for other uses of 'open-gnutls-stream' such as imaps and smtps.  This
  is fairly common case.

IMO, anyway.  If you disagree, I'll defer to your judgment, but my
feeling is that the current behavior would not be well received.

    Thanks,
      Mark




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18600; Package emacs. (Sun, 05 Oct 2014 02:01:02 GMT) Full text and rfc822 format available.

Message #28 received at 18600 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Mark H Weaver <mhw <at> netris.org>
Cc: 18600 <at> debbugs.gnu.org, Glenn Morris <rgm <at> gnu.org>
Subject: Re: bug#18600: 24.3.94; EWW fails to check https certificates
Date: Sat, 04 Oct 2014 22:00:27 -0400
> With these in mind, I have two recommendations:
> * I believe that eww https should check certificates by default in 24.4,
>   even though other tls connections are tolerant by default.
> * At minimum, it should be possible to enable certificate checking for
>   eww https connections while still allowing self-signed certificates
>   for other uses of 'open-gnutls-stream' such as imaps and smtps.  This
>   is fairly common case.

I think it's too late to do that for Emacs-24.4.  But we should apply
such a change to `emacs-24' after the 24.4 release, so that it will be
included in the next release regardless if the next release is 25.1 or
a 24.5 bugfix.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18600; Package emacs. (Sun, 05 Oct 2014 02:17:02 GMT) Full text and rfc822 format available.

Message #31 received at 18600 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Mark H Weaver <mhw <at> netris.org>
Cc: 18600 <at> debbugs.gnu.org
Subject: Re: bug#18600: 24.3.94; EWW fails to check https certificates
Date: Sat, 04 Oct 2014 22:16:15 -0400
Ted Zlatanov wrote:

> close this bug since http://debbugs.gnu.org/16978 already has all the info?

They are merged.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18600; Package emacs. (Sun, 05 Oct 2014 17:19:02 GMT) Full text and rfc822 format available.

Message #34 received at 18600 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 18600 <at> debbugs.gnu.org, Glenn Morris <rgm <at> gnu.org>
Subject: Re: bug#18600: 24.3.94; EWW fails to check https certificates
Date: Sun, 05 Oct 2014 13:17:56 -0400
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

>> With these in mind, I have two recommendations:
>> * I believe that eww https should check certificates by default in 24.4,
>>   even though other tls connections are tolerant by default.
>> * At minimum, it should be possible to enable certificate checking for
>>   eww https connections while still allowing self-signed certificates
>>   for other uses of 'open-gnutls-stream' such as imaps and smtps.  This
>>   is fairly common case.
>
> I think it's too late to do that for Emacs-24.4.  But we should apply
> such a change to `emacs-24' after the 24.4 release, so that it will be
> included in the next release regardless if the next release is 25.1 or
> a 24.5 bugfix.

I continue to think this will be ill-received, and could result in more
bad PR for the GNU Project, but having said that, I'll let it go now.

     Thanks,
       Mark




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18600; Package emacs. (Sun, 23 Nov 2014 17:11:01 GMT) Full text and rfc822 format available.

Message #37 received at 18600 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Mark H Weaver <mhw <at> netris.org>
Cc: 18600 <at> debbugs.gnu.org
Subject: Re: bug#18600: 24.3.94; EWW fails to check https certificates
Date: Sun, 23 Nov 2014 18:10:39 +0100
This has now been fixed on the trunk with the Network Security Manager
stuff.

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





Added tag(s) fixed. Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 23 Nov 2014 17:12:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 25.1, send any further explanations to 18600 <at> debbugs.gnu.org and Mark H Weaver <mhw <at> netris.org> Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 23 Nov 2014 17:12:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 22 Dec 2014 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 127 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.