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

Kathleen Moriarty <kathleen.moriarty.ietf@gmail.com> Mon, 31 August 2015 00:16 UTC

Return-Path: <kathleen.moriarty.ietf@gmail.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 0C8A11B2D5D; Sun, 30 Aug 2015 17:16:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.3
X-Spam-Level: *
X-Spam-Status: No, score=1.3 tagged_above=-999 required=5 tests=[BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, J_CHICKENPOX_75=0.6, SPF_PASS=-0.001] autolearn=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 7SLTLdrKMs1m; Sun, 30 Aug 2015 17:16:21 -0700 (PDT)
Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2C35D1B2D57; Sun, 30 Aug 2015 17:16:21 -0700 (PDT)
Received: by wicpl12 with SMTP id pl12so13363620wic.1; Sun, 30 Aug 2015 17:16:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=vfwQyMGFYzaXkEqXkQZ41tiuZVDSMXpf0Oki7SHyHJw=; b=Ky/6++BVdkM7a15WPUKEaLKwnOg8MSSxhQnFAk0COrgqE6jgMoZjrcPVHvq4WDqBLW MB5DzWGaYN5rB6vFpczFmsdRmyozeLwyQ7Iye8Bny3s7uxh1+4pxjLGYgnCT3jYyA4JN wYm7jx7lWUGayqzpmhdEhVWSKMwZT5lm0LwmTPabPqFNasH5yI7Nm38fTie3/n5h2bMe Kq9mH7GKkQzYolMbP7OeWldyLV2SK2hUbWDODzGolhMgRqPbgey/PrnjIYkp/nE2ckny Qyr8u2idNu3PqH6JQzADW7FpE3zc7RJRBUnple3lXcuVxanHqzzugKoqD1rM5AWNi1Tg +Hgw==
MIME-Version: 1.0
X-Received: by 10.194.2.9 with SMTP id 9mr22985150wjq.95.1440980179694; Sun, 30 Aug 2015 17:16:19 -0700 (PDT)
Received: by 10.28.157.84 with HTTP; Sun, 30 Aug 2015 17:16:19 -0700 (PDT)
In-Reply-To: <E865FFAE-26DE-4B03-A294-5CB64C660CB7@fb.com>
References: <007601d0c2c3$7615b610$62412230$@huitema.net> <CAHbuEH7RSdDmJK3i0e0W+kW0TSsbCNqQx7S+ZKp1Zx+7-uRjhw@mail.gmail.com> <841F8AF6-D800-4232-A900-7FB3872DE1D7@fb.com> <CAHbuEH66yK9JqnnK4UnoC1wtkL1d6S-JeL5twx6izM9o-R_BNg@mail.gmail.com> <E865FFAE-26DE-4B03-A294-5CB64C660CB7@fb.com>
Date: Sun, 30 Aug 2015 20:16:19 -0400
Message-ID: <CAHbuEH7pNs8qvkdEyqQ2-WERfPVHkgYxYH7FaFekerdNm8srGg@mail.gmail.com>
From: Kathleen Moriarty <kathleen.moriarty.ietf@gmail.com>
To: Alec Muffett <alecm@fb.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/secdir/_WGY_HgdUaFig2z6rkbMbaYvXso>
Cc: secdir <secdir@ietf.org>, joel jaeggli <joelja@bogus.com>, Mark Nottingham <mnot@mnot.net>, "draft-ietf-dnsop-onion-tld.all@tools.ietf.org" <draft-ietf-dnsop-onion-tld.all@tools.ietf.org>, The IESG <iesg@ietf.org>, Brad Hill <hillbrad@fb.com>
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: Mon, 31 Aug 2015 00:16:27 -0000

Hi Alec,

Thanks again for a quick and helpful response!

On Fri, Aug 28, 2015 at 11:17 AM, Alec Muffett <alecm@fb.com> wrote:
> Hi Kathleen!
>
>
> On Aug 28, 2015, at 15:31, Kathleen Moriarty
> <kathleen.moriarty.ietf@gmail.com> wrote:
>
> Comments from other ADs are asking about the comments that have not
> been addressed.  The effect of this is that the ADs are reviewing and
> don't know if outstanding comments from reviewers in last call will be
> addressed.  I recommend asking the sponsoring AD if you could upload a
> new version today.  I didn't cast my ballot after reading it yet as
> the SecDir review wasn't addressed and Christian had some good points.
>
> If we at least had a version to look at that addressed the points, it
> would help some of us... even if it's posted elsewhere.
>
>
>
> I shall have to punt that one to Mark Nottingham, esteemed holder as he is
> of all the drafts and master diffs. :-)
>
> Regarding the other ADs, I have tried to address as many substantive
> questions as possible on the list - notably the extended "DNS-Syntax
> Compliance" thread - but seeing as I am a neophile at IETF process plus have
> no idea who the ADs actually are, I have not been in a position to chase
> them all.

Ah, the AD comments will come in a bit more formally as a set of
comments and may include something they want to "DISCUSS".  Stephen &
Brian (I think) entered comments that referred to unanswered comments
from the last call process (from people other than ADs).  This may
just be the IANA questions answered here and I'm going to stay focused
on the security stuff to not duplicate efforts.

>
> It took me a while before I even worked out that I was permitted to
> subscribe to the IETF list, which I regret.

Please do ask questions on process or to learn more about the IETF, I
and others are more than happy to assist.

>
> If there are outstanding undiscussed technical issues or questions which are
> inhibiting bringing this to a satisfactory conclusion, I hereby invite
> interested parties to throw them at me for resolution.
>
>
I'll skip over the IANA text since others are working on that, but
appreciate you including the text and I have looked through it.
>
> 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.
>
>
> This would be important for all ADs to see.  Although the IESG is
> copied on this message, it's a follow on from the SecDir review, so
> they may not all read it unfortunately.
>
>
>
> Suzanne's commentary to IANA upon the IANA feedback was as follows:
>
> To: drafts-lastcall@iana.org <drafts-lastcall@iana.org>
>
> Hi,
>
> If I understand this correctly, your reviewer is suggesting an additional
> attribute of how .onion names should be handled beyond what's in Section 2
> of the draft (which is incorporated by reference in the IANA
> Considerations)-- instructions to service providers besides DNS
> registries/registrars.
> This is fine with me but given the level of controversy around this draft
> and the application of RFC 6761 generally, I suggest being very precise
> about the text. Sec. 2 of the draft is based on the template in RFC 6761,
> and what you're suggesting goes beyond what's in that template or called for
> by 6761.
> As long as it's clear that this additional category is specific to this
> request, and not a reference to anything in RFC 6761 or intended to extend
> it, it seems like a good idea.
> I suggest clarifying that most of the text in Sec. 2  corresponds directly
> to the template in RFC 6761, and then adding the additional instruction to
> service providers.
> As a side issue, I'm not sure how human users would be expected to tell that
> .onion names are special. But it seems to me that there's no specific
> application behavior that depends upon this, so I'm also not sure it
> matters.
>
> thanks,
> Suzanne
>
>
> A related draft amendment has been circulating amongst the Draft's authors
> and editors, waiting for the dust to settle somewhat, per the discussion
> above.  As an aside, though, I would here like to highlight the IANA action
> state:
>
> https://datatracker.ietf.org/doc/draft-ietf-dnsop-onion-tld/?include_text=1
>
> IANA review state: IANA OK - Actions Needed
> IANA action state: None
>
>
> ...which apparently means "Document requires IANA actions, and the IANA
> Considerations section indicates the details of the actions correctly" -
> which seems to suggest that IANA are positive about the extant draft, and
> that this is a matter of minor tweakage to them.
>
>
> Precisely the same website is served though another proxy at:
>
> https://urldefense.proofpoint.com/v1/url?u=https://3g2upl4pq6kufc4m.onion.cab/&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=PKCvk5ihsZdnlobuFIuhTw%3D%3D%0A&m=%2FfAFQ13o0m7HiSM3O188bvFMSONzst4zlJ8bo6dYuRM%3D%0A&s=23bfc666beb74aba72eb6b16f7ba1c58c5aeeb3f75252e913372b1089c0f4858
>
> ...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.
>
>
> Do you have proposed text to address the concern about how the
> security considerations section is written?
>
>
>
> Not regarding this matter, as no concrete improvement has been seen as
> necessary; the current text:
>
>
>    Also, users need to understand the difference between a .onion name
>    used and accessed directly via Tor-capable software, versus .onion
>    subdomains of other top-level domain names and providers (e.g., the
>    difference between example.onion and example.onion.tld).
>
>
> ...seems to encompass the need for "consideration" of this point without
> restricting itself to advice which may become dated with future Tor software
> revision, or else commanding the user to perform research - which latter
> would appear to be a rude imperative.
>
>
> I think the question/request here is to more clearly state these
> security concerns so that the security considerations are a bit more
> thorough.
>
>
>
> Our thinking regarding this was that the risks described above are
> important, but they are not exclusive to the ".onion" namespace; it is
> entirely possible for a company with a registration for the "com.foo"
> top-level domain to create a layer-7 proxy forwarding to
> "http://google.com.foo/" and perform the same hack (mitigated by the same
> solution, viz: SSL).

OK, that makes sense.

>
> To point it out at length as a risk in a onion-related RFC seemed
> unnecessarily pejorative.
>
> Would you disagree? Do you feel that ".onion" has some special concerns in
> this regard?

I'd say just that there is special handling expected for this as
opposed to other TLDs.  The differences is where new concerns or
considerations exist.  You've pointed out a bunch of that already, the
SecDir reviewer thought it could be better organized.

>
>
> Incorrect; the main reason for registration of ".onion" is CA/B-Forum Ballot
> 144:
>
> https://urldefense.proofpoint.com/v1/url?u=https://cabforum.org/2015/02/18/ballot-144-validation-rules-dot-onion-names/&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=PKCvk5ihsZdnlobuFIuhTw%3D%3D%0A&m=%2FfAFQ13o0m7HiSM3O188bvFMSONzst4zlJ8bo6dYuRM%3D%0A&s=b3befe71127444bd5c5d8342465f3d9cf5446aebfb7192e279c91459e23c80ae
>
> ...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.
>
>
> OK, can you propose text to clarify this point?
>
>
> Again, this seemed unnecessary to explain in the draft in pursuit of
> registration of ".onion" as a special use domain name.
>
> Should at some point in the future SSL be superseded, mentioning the
> historical artifact of Ballot-144 and the SSL-based reason for registration
> of .onion (which might be chugging along perfectly usefully on its own
> recognizance by then) would be strange.
>
> Am I incorrect (or perhaps not thinking broadly enough?) to think that the
> goal of the draft is to register the special use domain name, and that the
> meta-discussion of "why?" is not *meant* to be in the eventual RFC?
>
> Perhaps that information is meant to get included and then is cut out at the
> last moment before publication?  I would appreciate guidance on how this
> works, please.  :-)


You're right, the why isn't necessary for the draft, this background
was helpful though.
>
>
> Understanding and seeing the proposed changes would help a lot for my
> review.
>
>
> Mark, Richard, ... :-)
>
>
> Simple: it's not.  The goal of leak-reduction is to reduce leaks, rather
> than to assure security.

Are there privacy considerations with leak reduction?
>
>
> OK, stating this would hep to make the security considerations section
> more complete.
>
>
> For my clarity, I imagine you are suggesting that this consideration be
> added to the security consideration be added to the security considerations?
>
> That would seem doable, if something sufficiently brief can be constructed,
> because much of the actual mechanism which should lead to the desired
> behaviour is described in Section 2 of the draft, the elements of which are
> heavily modeled upon the examples provided in RFC6761.
>

It's fine to have them in section 2.  When I read through them again,
what are the special security properties that users and applications
should recognize that are mentioned in the first bullet?  Are these
properties provided through the subsequent bullets handling
requirements?  I'm guessing that's the case, but since they are not
sub-bullets, I'm not sure.

> Continuing...
>
> 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.
>
>
> I think a discussion on this in the security considerations could be
> helpful.
>
>
> Excellent!

OK, great, so I think just adding something on this point in the
security considerations would be good.  We are fine on the other
points and I just have the question about security properties for
section 2.

>
> I see your pints when systems behave as expected and are TOR
> aware, but also Christian's points on possible malicious use.  It's
> helpful to put out the full set of considerations in a draft for
> future readers who won't see this thread.
>
>
> I think we can come to an accord, but the consensus of editors and authors
> will need to be involved to draft something.

That sounds good.

Thank you,
Kathleen

>
> Now: has anyone else any open questions regarding
> draft-ietf-dnsop-onion-tld-00, please?
>
>     - alec
>
>
> --
> Alec Muffett
> Security Infrastructure
> Facebook Engineering
> London
>



-- 

Best regards,
Kathleen