Re: [arch-d] Treating "private" address ranges specially

Erik Kline <ek.ietf@gmail.com> Wed, 31 March 2021 05:59 UTC

Return-Path: <ek.ietf@gmail.com>
X-Original-To: architecture-discuss@ietfa.amsl.com
Delivered-To: architecture-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E7AF53A1B36 for <architecture-discuss@ietfa.amsl.com>; Tue, 30 Mar 2021 22:59:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 RW3B7E_a-XnY for <architecture-discuss@ietfa.amsl.com>; Tue, 30 Mar 2021 22:59:25 -0700 (PDT)
Received: from mail-oo1-xc2d.google.com (mail-oo1-xc2d.google.com [IPv6:2607:f8b0:4864:20::c2d]) (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 3A1AF3A1B35 for <architecture-discuss@ietf.org>; Tue, 30 Mar 2021 22:59:24 -0700 (PDT)
Received: by mail-oo1-xc2d.google.com with SMTP id s1-20020a4ac1010000b02901cfd9170ce2so2451726oop.12 for <architecture-discuss@ietf.org>; Tue, 30 Mar 2021 22:59:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6oZ5mc1Nifu05IFgc7GrqPuZLfH1qoFFnNZ2+a6J7/Y=; b=pUj7U6/5TkjIjYjB1XI9moL0kmDuUTJUbb2hpxFqwvorXMisKHz3afzuYL/4Q2PI0K B1+oGb3FyYD5pdro9DT69MGyxLlsjAM2JG/mppJ5ptd37y68eNIY2g/DaCSRZa3ADCSi IO/+yXIJg2TR/TpDMgcCbUqCB5/rSxJGJF9dkDdaZ5hXthgurkfXtl4QzrZmSRYoALOj 6MFzqfVRnxtDSWQ82afZ6H7dagvvjRNiaLW8ITRFcwHM/6y8ZtmjnQgA6U1VCEH134Ir EN4AKDnDgd5cJ4AMnw//Jk/XWimK4zmjieJMSYcg7+PJ97KEECpZS1AqdpzrKxNUvxFL 8TSQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6oZ5mc1Nifu05IFgc7GrqPuZLfH1qoFFnNZ2+a6J7/Y=; b=UScv024QwaKqr0NEvpZaWlWQbsR9b1eHOTk4nC/0qLzP+YKb136orgQ+aRSNlcrngj geLi9TuqegtLTrhm65849d43zXyLVrkzegR9X+GNRclciu4W2SV2uy6WF8HH86glAxor 3zA7aOZaU3dqA8gNHOnohvX4FXLJVoyuS7bk21i4WAsfJFdNpH6ouaUktKmK8t6fe9cc 7pKXRuXaOVmF7zplyfVYo2cHmBoS1XMdEcDX/VN9+0D7V8Co0lUFVZtvMuBp7rg8BHt2 9zleMK+QDXbox7M+s48TOSojDUKCD76ZF21WnWvj5OnwRuYgrJw02O5ozaNNYqkY3R9s +LOQ==
X-Gm-Message-State: AOAM5328MkUu6MRGWXzS+8vbRCiLgxMVFBWOVQTPYXkR3Vd9iFapRpBn nY4WR5QMbWGHm1R+VTBU3gpAisKPvkCDF2lcLx2kol/TE1M=
X-Google-Smtp-Source: ABdhPJwR0m7qXz12vttpt8VYi5iapKM6rCuCUUKFJtHlD7jN6sAXJBjXEXpNZIMus9VXgfxpGT/oXa2ixCNWlfGs72Q=
X-Received: by 2002:a05:6820:60e:: with SMTP id e14mr1433543oow.67.1617170363339; Tue, 30 Mar 2021 22:59:23 -0700 (PDT)
MIME-Version: 1.0
References: <4329d51a-d5ba-45b3-9fb0-6795dc6fccd3@www.fastmail.com>
In-Reply-To: <4329d51a-d5ba-45b3-9fb0-6795dc6fccd3@www.fastmail.com>
From: Erik Kline <ek.ietf@gmail.com>
Date: Tue, 30 Mar 2021 22:59:12 -0700
Message-ID: <CAMGpriWA4B8AThNKBOHo-bfAdQ2s5iYv8rBOB7X8UVc5GsqENA@mail.gmail.com>
To: Martin Thomson <mt@lowentropy.net>
Cc: architecture-discuss@ietf.org
Content-Type: multipart/alternative; boundary="0000000000000c54d605beced1ec"
Archived-At: <https://mailarchive.ietf.org/arch/msg/architecture-discuss/8HBgSSLuUGQDxo0pKUjXOlx9Ccw>
Subject: Re: [arch-d] Treating "private" address ranges specially
X-BeenThere: architecture-discuss@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: open discussion forum for long/wide-range architectural issues <architecture-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/architecture-discuss>, <mailto:architecture-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/architecture-discuss/>
List-Post: <mailto:architecture-discuss@ietf.org>
List-Help: <mailto:architecture-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/architecture-discuss>, <mailto:architecture-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 31 Mar 2021 05:59:30 -0000

On Tue, Mar 30, 2021 at 10:25 PM Martin Thomson <mt@lowentropy.net> wrote:

> There is a proposal to add extra controls to the Web to prevent servers on
> the "public" Internet from connecting to "private" resources without
> consent:
>
> https://wicg.github.io/private-network-access/
>
> The short story here is that the Web has always included was in which
> browsers aim to protect themselves from the repercussions of their actions
> on networks that have insecure local services.  Basically, the browser asks
> the service for permission before it makes requests.  However, in the
> interest of compatibility, these protections have always had exceptions
> where no such permission was requested.  This proposal simply eliminates
> those exceptions for "private" addresses.
>
> The way that this works is fairly simple.  The IPv4 and IPv6
> special-purpose address registries [1][2] have a "globally reachable"
> flag.  If this flag is false, then a browser will always ask for permission
> before using a service on one of those addresses.  The browser will look
> for a new signal from the server (one that is unlikely to appear purely by
> accident) before it continues to make requests.  There's another similar
> protection when going from non-globally reachable addresses to loopback
> addresses.
>
> (Note that this doesn't prevent cross-protocol attacks; it assumes that
> the server is talking HTTP.  HTTP is not that great at cross-protocol
> attacks, but there is a separate blocklist for ports that aims to manage
> that.)
>
> The question then: is this is a reasonable approach for minimizing harm?
> Is this sort of approach consistent with the vision for the addressing
> architecture, or is this an abuse of these flags?  Are there guidelines
> that we might follow in treating addresses based on their attributes?
>
> My read here is that this is in line with design intent, but I claim no
> particular expertise with respect to the addressing architecture.  From my
> perspective, closing consent loopholes is a good thing.
>
> Obviously, there is a school of thought that says if you stand up a
> networked service, then you need to protect it properly.  This isn't about
> ensuring that you use HTTPS or that you properly authorize access to
> resources that should be protected.  This is about browsers taking steps to
> avoid being complicit in attacks on services that aren't properly protected.
>
> I should also point out that there is no protection conferred if a service
> is reachable via an address in a globally reachable space.  The proposal
> doesn't really acknowledge this possibility, but it's implied.
>
> Cheers,
> Martin
>
>
> [1]
> https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml
> [2]
> https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml
>
> _______________________________________________
> Architecture-discuss mailing list
> Architecture-discuss@ietf.org
> https://www.ietf.org/mailman/listinfo/architecture-discuss


I'm not clear how much this will really achieve in the presence of typical
IPv6 addressing.  For example, though I haven't read this entirely nor in
detail, the text in 2.2 is somewhat curious.  My reading of that, for one
example scenario, is:

    [1] suppose a URL's host resolves to an IPv6 ULA address
    [2] likely the client has a ULA address as well as a few GUA addresses
    [3] RFC 6724 source address selection selects the ULA source for the
ULA destination
    [4] ergo connection is not deemed private --> any web page can cause a
client to connect to "private" IPv6 destinations

Wouldn't the same be true of a client with only an RFC1918 address, i.e. a
web page can cause connections to RFC1918 destinations?  I'm sure I'm
misunderstanding something here.