Re: [TLS] Captive portals, "access administratively disabled" and alert messages

Mateusz Jończyk <mat.jonczyk@o2.pl> Tue, 02 January 2018 20:08 UTC

Return-Path: <mat.jonczyk@o2.pl>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2C42D12D82D for <tls@ietfa.amsl.com>; Tue, 2 Jan 2018 12:08:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lr-8Ku5MOyOw for <tls@ietfa.amsl.com>; Tue, 2 Jan 2018 12:08:44 -0800 (PST)
Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 45F7012D810 for <tls@ietf.org>; Tue, 2 Jan 2018 12:08:43 -0800 (PST)
Received: (wp-smtpd smtp.tlen.pl 2444 invoked from network); 2 Jan 2018 21:08:41 +0100
Received: from ceh60.neoplus.adsl.tpnet.pl (HELO [192.168.1.22]) (mat.jonczyk@o2.pl@[83.30.183.60]) (envelope-sender <mat.jonczyk@o2.pl>) by smtp.tlen.pl (WP-SMTPD) with ECDHE-RSA-AES256-SHA encrypted SMTP for <tls@ietf.org>; 2 Jan 2018 21:08:41 +0100
To: Eric Rescorla <ekr@rtfm.com>
References: <096449a4-38fc-e17f-d995-a584f976b422@o2.pl> <CABcZeBOYH5sFszpTVbTyp8kYtmhqCX+_TJN9ofW5vuUMx50KRg@mail.gmail.com>
Cc: tls@ietf.org
From: =?UTF-8?Q?Mateusz_Jo=c5=84czyk?= <mat.jonczyk@o2.pl>
X-Enigmail-Draft-Status: N1110
Message-ID: <5e9e9357-2031-9cc9-4ee7-10865e562184@o2.pl>
Date: Tue, 2 Jan 2018 21:08:40 +0100
User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <CABcZeBOYH5sFszpTVbTyp8kYtmhqCX+_TJN9ofW5vuUMx50KRg@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-WP-MailID: 33865c68abc9f8a649d6c38483856c97
X-WP-AV: skaner antywirusowy Poczty o2
X-WP-SPAM: NO 0000000 [gXOU]
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/y_YodyWFkGVPZ1r63hAPPLWCpaA>
Subject: Re: [TLS] Captive portals, "access administratively disabled" and alert messages
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tls/>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Jan 2018 20:08:46 -0000

Hello,
Thank You for reviewing my email.

W dniu 02.01.2018 o 20:37, Eric Rescorla pisze:
> A similar idea was proposed a while back, albeit with simpler semantics:
> 
>   https://tools.ietf.org/html/draft-lemon-tls-blocking-alert-00
> 
> Discussion here:
> 
>   https://www.ietf.org/mail-archive/web/tls/current/msg20264.html
> 
> I'm not really enthusiastic about any of these ideas for any of the
> administratively prohibited
> use cases because the information being provided to the user is unverifiable.
> I.e., this
> just tells you that someone on the network didn't like it, but the message
> itself is just
> an assertion (this is different from 451 in that that's provided inside the TLS
> channel
> if TLS is used). It's not like, for instance, the browser should display the
> string to the
> user as if it were true.

Then the browser should display a message inside the warning screen that the
string cannot be trusted. This is no less secure then an alternative: a TLS
certificate error that conveys no message to the user whatsoever.

The message could theoretically be signed by some filtering party, but this is
out of scope here.

Additionally, error 451 is / could be currently typically delivered by network
intermediaries. It is much more common that network intermediaries / ISPs block
content than website providers do so. When the whole world will use HTTPS, there
will be almost no use of error 451 whatsoever (apart from SSL MITM).

> 
> The captive portal case seems a bit more plausible, in that it can be machine
> processed
> by the client to do some sort of captive portal detection thingy (e.g., connect to
> a site over HTTP). However, the right place to bring this kind of proposal would
> probably be
> CAPPORT (https://tools.ietf.org/wg/capport/). However, I see that they are pursuing
> a different direction based on HTTP.
> 
> -Ekr


Responding to a message from Brian Smith,
<https://www.ietf.org/mail-archive/web/tls/current/msg20276.html>
> Standardizing and implementing things like this signals, politically, that we
> accept and even encourage censorship like we see in China and many other
> places already in the world. That, on its own, makes this a non-starter.

If so, then the document should specify that filtering is discouraged or
something similar.

Greetings,
Mateusz Jończyk

> 
> 
> 
> 
> On Tue, Jan 2, 2018 at 11:15 AM, Mateusz Jończyk <mat.jonczyk@o2.pl
> <mailto:mat.jonczyk@o2.pl>> wrote:
> 
>     Hello,
>     OpenDNS by default blocks websites that are used for phishing and optionally
>     other sites as configured by the deployer. It does this by DNS poisoning: it
>     responds with a forged A or AAAA response that redirects to their server. An
>     example website blocked by OpenDNS in this manner is
>     https://internetbadguys.com/.
> 
>     When OpenDNS blocks a website that is served by HTTPS, the user is presented
>     with a "Certificate Error" message. To see what happened, she then has to accept
>     the incorrect certificate or visit the plain HTTP version of the webpage. This
>     creates some problems: aside from a bad user experience, it makes users
>     accustomed to ignoring certificate errors.
> 
>     Another problem is created by captive portals: networks that use "a web page
>     which is displayed to newly connected users before they are granted broader
>     access to network resources." (Wikipedia).
> 
>     This could be solved by specifying two new values of AlertDescription:
>     access_administratively_disabled and captive_portal as well as a new field to
>     struct Alert: alert_message.
> 
>     Let alert_message be a fixed-length UTF-8-encoded string. It would be only valid
>     for
>             (description == access_administratively_disabled
>             ||
>             description == captive_portal)
>     and otherwise a client would HAVE TO ignore it. It would be plain-text for
>     simplicity, shortness and security. It would be null-terminated and then
>     randomly padded to a size of perhaps 100 bytes. A TLS client would HAVE TO
>     filter the message for any odd characters, invalid UTF-8 sequences, etc. as will
>     be specified in the standard.
> 
>     Greetings,
>     Mateusz Jończyk
> 
>     _______________________________________________
>     TLS mailing list
>     TLS@ietf.org <mailto:TLS@ietf.org>
>     https://www.ietf.org/mailman/listinfo/tls
>     <https://www.ietf.org/mailman/listinfo/tls>
> 
>