Re: [secdir] Security review of draft-ietf-dnsop-onion-tld-00.txt

Alec Muffett <alecm@fb.com> Fri, 28 August 2015 14:10 UTC

Return-Path: <prvs=66829a2cc3=alecm@fb.com>
X-Original-To: secdir@ietfa.amsl.com
Delivered-To: secdir@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C453D1B3339; Fri, 28 Aug 2015 07:10:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.366
X-Spam-Level:
X-Spam-Status: No, score=-2.366 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
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 SaPDpKOVfe-D; Fri, 28 Aug 2015 07:10:34 -0700 (PDT)
Received: from mx0a-00082601.pphosted.com (mx0a-00082601.pphosted.com [67.231.145.42]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E2F2E1B327D; Fri, 28 Aug 2015 07:10:34 -0700 (PDT)
Received: from pps.filterd (m0044008 [127.0.0.1]) by mx0a-00082601.pphosted.com (8.14.5/8.14.5) with SMTP id t7SE5Zji022913; Fri, 28 Aug 2015 07:10:28 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fb.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=facebook; bh=c5e5KoBlcJArYOc0zkdKvLDZJGo434EJPyRHqUDfcNM=; b=MddbgZGrW4/7twmq/TMGhGYZQHe/lf3qKLjntTpduHGwVy9oVYc25bJLVEabtdiEKXA2 A8VHhIXuCtIVj0oMECp013OUegMivB9THHphnYSiR2sxqY1n83awoo0LpqDPVEF6B70D F+1GHdoKXJoMzkDDRiFDqIWy5PinUVcSMQE=
Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 1wjhb50ynb-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Fri, 28 Aug 2015 07:10:28 -0700
Received: from PRN-MBX02-4.TheFacebook.com ([169.254.2.38]) by PRN-CHUB09.TheFacebook.com ([fe80::b128:36fa:e69b:a338%12]) with mapi id 14.03.0248.002; Fri, 28 Aug 2015 07:10:25 -0700
From: Alec Muffett <alecm@fb.com>
To: Kathleen Moriarty <kathleen.moriarty.ietf@gmail.com>, Mark Nottingham <mnot@mnot.net>, Richard Barnes <rlb@ipv.sx>, Brad Hill <hillbrad@fb.com>
Thread-Topic: Security review of draft-ietf-dnsop-onion-tld-00.txt
Thread-Index: AdDCwrgI+PKUtFTlQwu24Fnrr5jdagegWveAACR0AIA=
Date: Fri, 28 Aug 2015 14:10:24 +0000
Message-ID: <841F8AF6-D800-4232-A900-7FB3872DE1D7@fb.com>
References: <007601d0c2c3$7615b610$62412230$@huitema.net> <CAHbuEH7RSdDmJK3i0e0W+kW0TSsbCNqQx7S+ZKp1Zx+7-uRjhw@mail.gmail.com>
In-Reply-To: <CAHbuEH7RSdDmJK3i0e0W+kW0TSsbCNqQx7S+ZKp1Zx+7-uRjhw@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-originating-ip: [192.168.52.123]
Content-Type: multipart/signed; boundary="Apple-Mail=_9EEBD765-8AF3-4CD6-92F5-DB1342B2B2D8"; protocol="application/pgp-signature"; micalg="pgp-sha512"
MIME-Version: 1.0
X-Proofpoint-Spam-Reason: safe
X-FB-Internal: Safe
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.14.151, 1.0.33, 0.0.0000 definitions=2015-08-28_06:2015-08-27,2015-08-28,1970-01-01 signatures=0
Archived-At: <http://mailarchive.ietf.org/arch/msg/secdir/VKmWeAOKv9ZEYTWY-tghylUMeO0>
X-Mailman-Approved-At: Fri, 28 Aug 2015 07:18:57 -0700
Cc: "draft-ietf-dnsop-onion-tld.all@tools.ietf.org" <draft-ietf-dnsop-onion-tld.all@tools.ietf.org>, The IESG <iesg@ietf.org>, secdir <secdir@ietf.org>
Subject: Re: [secdir] Security review of draft-ietf-dnsop-onion-tld-00.txt
X-BeenThere: secdir@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Security Area Directorate <secdir.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/secdir>, <mailto:secdir-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/secdir/>
List-Post: <mailto:secdir@ietf.org>
List-Help: <mailto:secdir-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/secdir>, <mailto:secdir-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 28 Aug 2015 14:10:37 -0000

> On Aug 27, 2015, at 21:46, Kathleen Moriarty <kathleen.moriarty.ietf@gmail.com> wrote:
> Hi,
> I don't see any on list responses to the points Christian raised, have
> they been addressed?

Hi Kathleen!

I'm Alec, I am one of the co-authors of the draft.

At the suggestions of Mark Nottingham & Richard Barnes (cc:) we have refrained from issuing revisions to the draft because of the impending 2015-09-03 IESG telechat, in order that discussion does not derail for pursuit of a moving target; that said, we authors and our helpers and experts in IETF process (for whose help we are extremely grateful) have been discussing the best ways to address the handful of issues which have been raised.

One question under discussion has included a proposed amendment from IANA regards "registration" versus "delegation" and whether the notes kindly provided by IANA might, if their suggested amendment were made, cause a lack of orthogonality between the draft and other relevant documents. Suzanne raised that matter and we feel it's something best discussed and perhaps addressed in batch with other changes.


In particular reference to Christian's comments:

>> I am a bit puzzled by the way the security section is written. Since the
>> purpose of the draft is to reserve the “.onion” TLD, I would expect the
>> security section to present the security issues mitigated or introduced by
>> this TLD reservation. As far as I understand, the main security issues come
>> from client confusion, which could cause “.onion” names to be resolved
>> through the standard DNS process.

That is correct and is the intention, although perhaps my preferred phrasing would be "present '.onion' names as if they were subdomains of some other domain within an arbitrary top-level domain" - since this is really about the existence of Layer 7 proxies attempting to provide 'semi-transparent' access to the Tor Onion network as-if the onion namespace were a virtual namespace of some corporate enterprise.

An example of this would be:

https://3g2upl4pq6kufc4m.tor2web.org/ <https://3g2upl4pq6kufc4m.tor2web.org/>

...which is the (independent, non-Tor) Tor2web organization's link to the DuckDuckGo hidden service; the onion address is hidden as the leftmost label.

Precisely the same website is served though another proxy at:

https://3g2upl4pq6kufc4m.onion.cab/ <https://3g2upl4pq6kufc4m.onion.cab/>

...which is a layer 7 proxy run by Seotecs UG in Germany, but whose choice of DNS domainname under ".cab" leads to a more obvious risk of confusion.


>> A number of bad things happen then, from
>> simple information disclosure that a client is trying to access a TOR
>> service, to potential spoofing of secure TOR services.

Some bad things are possible, yes - HTTP man in the middle, not least - but to my mind the risks are little worse than risks the likes of "www.fac3b00k.com <http://fac3b00k.com/>.cab" would offer, and in fact I believe such risks underscore the importance of registering ".onion" so that SSL EV certificates can be brought to bear upon the mitigation of some of these risks.


>> In fact, the main
>> reason for the registration request is to mitigate these security issues, by
>> requesting that standard DNS resolvers and servers recognize “.onion”
>> requests and refuse to forward them.

Incorrect; the main reason for registration of ".onion" is CA/B-Forum Ballot 144:

https://cabforum.org/2015/02/18/ballot-144-validation-rules-dot-onion-names/ <https://cabforum.org/2015/02/18/ballot-144-validation-rules-dot-onion-names/>

...which permits the existence of SSL Certificates for Onion addresses until 1 November 2015.

If (upon that date) the ".onion" namespace has not been recognized as a global TLD, all SSL certificates for the ".onion" namespace will be killed and SSL will no longer be able to mitigate these threats for Onion sites.

This will lead to the shutdown of the Facebook ".onion" site, another that is owned by blockchain.info, and the SSL service for The Intercept magazine, amongst others.

Thus, my motivation.


>> The security section makes all these points, but it also mixes in a
>> description of the structure of .onion names and their cryptographic
>> components. I believe the issues would be easier to understand if the main
>> body of the document included a short description of the TOR naming process
>> and name resolution.

Per the comments above, a draft explanation of Onion address syntax (summary: they will remain compatible with DNS syntax) is with Mark and Richard for discussion but is on hold for the reasons explained above.

Regards Onion name "resolution", we believe that that matter is best dealt with outside the scope of this document, not least because the resolution mechanism is defined by software which is open to change.

It seems more important to confirm that Onion addresses will remain legal within the constrains of DNS label syntax.


>> The security section also does not explain how the “leakage of names” issue
>> is mitigated for legacy systems.

Simple: it's not.  The goal of leak-reduction is to reduce leaks, rather than to assure security.

There certainly is leakage of lookups for the ".onion" TLD to the root servers, and eliminating that 100% is unlikely, but it is a wasteful thing and should be inhibited for reasons of hygiene rather than security.


>> By definition, these systems have not been
>> updated and do not perform special treatment of “.onion” names. The TLD
>> reservation probably helps somewhat, but this is not discussed.

Agreed. That's never been the intent of the document, thus it should be fine.


>> Then, the security section also does not discuss how malicious name
>> resolvers could be deployed in order to attack the TOR network. For example,
>> if TOR security relies on DNS servers “black holing” misrouted request to
>> resolve “.onion” names, what happens if malicious servers replace the
>> suggested black-holing with some malicious tampering?


Tor security does not rely on blackholing DNS requests, it relies upon cryptographic technology.

Tools which are Tor-aware will not have the leakage problem.

Tools which make a half-assed approach towards Tor access  by passing names through DNS resolution should be encouraged towards failure, but it is not required for security.

    - alec


--
Alec Muffett
Security Infrastructure
Facebook Engineering
London