Re: [arch-d] Treating "private" address ranges specially
Erik Kline <ek.ietf@gmail.com> Wed, 31 March 2021 06:17 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 D789B3A1BC9 for <architecture-discuss@ietfa.amsl.com>; Tue, 30 Mar 2021 23:17:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level:
X-Spam-Status: No, score=-2.096 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_BLOCKED=0.001, 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 VuUQDIxLpciZ for <architecture-discuss@ietfa.amsl.com>; Tue, 30 Mar 2021 23:17:27 -0700 (PDT)
Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) (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 F15093A1BC7 for <architecture-discuss@ietf.org>; Tue, 30 Mar 2021 23:17:26 -0700 (PDT)
Received: by mail-oi1-x231.google.com with SMTP id m13so18972491oiw.13 for <architecture-discuss@ietf.org>; Tue, 30 Mar 2021 23:17:26 -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=IKPMvQ/wQV55mXH5XVt/HmUg4e/Y3B08ns9ddh7+KCI=; b=m3920uQOGiTVOoKMs1+krHVGcZGj0hB9gFwy9O14ijM2o0nWn9eiB2RwoOZCJW8/Qj k2HbdUrkjNOuLxqHnABPzRSJf/7csCkzFPh9bIqIICBGaCuEPtDDVAq4xcaOdCTDo9uq T0mF2MjsVrHuXNpf5ho32jOulbqGU9W3q6pDcq5oIzV+y1xBfT1wVFpmyLWE6RlWvqqS FQC/gb2jTo3MwwhFk06I+lEcT1l38RrZ4qzanrDYVtYVFiWcgSIeCfjXGqXASwYTWXal f/Zc1OvFnttTkPjm0sP83H1FvjhuYXAvVwMGmhimkR6MwZlHEQl3Mk5WkBrvqiHR92em TLxg==
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=IKPMvQ/wQV55mXH5XVt/HmUg4e/Y3B08ns9ddh7+KCI=; b=QGqgAfl8yxgacqoELreIsE36UFZecMGzdxeMxMS6hRNLmRzP1o7plrKyZpeh2zq75p QlhE4kZuotPO91aogYvElRCzMO57elbKjgu08BnOFwsdo5OLmvYlgSI2PWKZwwQ0ETl0 il2zPRS24bfUtqf2NHvCTVihQvQfGVcBrvS3GKCPmBgp/JEOaHNNJviWQTe9CD/wBMrC iKT3nbBhh5CLuV9IgXuiVbMOzHt/zKHxE67NXNQQQVYKu8FsBuik9AzJdJn5MxKdtJR7 JSVxq98ZQwekQymN6LR2pLU+G4ILcraD6FL5TAEkvWqCyEcaq+19JhL/fq3jmOoFraFS PoJA==
X-Gm-Message-State: AOAM533BT/2T94GRPA8ayZwDh05Wwykbx37th2gS+NW7VOQLwQvd4nsX WK6b4MYzwuxCUdS6e1fMjhplkH3DCRXLJ6e7aC0=
X-Google-Smtp-Source: ABdhPJzRh7gP5ecqI4Ab3dta68/P2occxVhEqzBlj/81Ux1JQanrYgiPXq2X2xF/nvtCE5BQ/daPvmOk2myF6kKEDd0=
X-Received: by 2002:aca:ab53:: with SMTP id u80mr1234095oie.77.1617171444911; Tue, 30 Mar 2021 23:17:24 -0700 (PDT)
MIME-Version: 1.0
References: <4329d51a-d5ba-45b3-9fb0-6795dc6fccd3@www.fastmail.com> <CAMGpriWA4B8AThNKBOHo-bfAdQ2s5iYv8rBOB7X8UVc5GsqENA@mail.gmail.com>
In-Reply-To: <CAMGpriWA4B8AThNKBOHo-bfAdQ2s5iYv8rBOB7X8UVc5GsqENA@mail.gmail.com>
From: Erik Kline <ek.ietf@gmail.com>
Date: Tue, 30 Mar 2021 23:17:14 -0700
Message-ID: <CAMGpriUJkWYPyw7=oAj_GnGu2J14T3=VZYNWPZtAs870P=x0sg@mail.gmail.com>
To: Martin Thomson <mt@lowentropy.net>
Cc: architecture-discuss@ietf.org
Content-Type: multipart/alternative; boundary="00000000000083d38705becf1118"
Archived-At: <https://mailarchive.ietf.org/arch/msg/architecture-discuss/9koQm23ecb1y4oosq1N3-tcVrJA>
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 06:17:32 -0000
On Tue, Mar 30, 2021 at 10:59 PM Erik Kline <ek.ietf@gmail.com> wrote: > 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. > My mistake. I think the key text I didn't property absord was "the current url's host".
- [arch-d] Treating "private" address ranges specia… Martin Thomson
- Re: [arch-d] Treating "private" address ranges sp… Erik Kline
- Re: [arch-d] Treating "private" address ranges sp… Erik Kline
- Re: [arch-d] Treating "private" address ranges sp… Martin Thomson
- Re: [arch-d] Treating "private" address ranges sp… Erik Kline
- Re: [arch-d] Treating "private" address ranges sp… Mark Nottingham
- Re: [arch-d] Treating "private" address ranges sp… Ted Hardie
- Re: [arch-d] Treating "private" address ranges sp… Erik Kline
- Re: [arch-d] Treating "private" address ranges sp… Eliot Lear
- Re: [arch-d] Treating "private" address ranges sp… Brian E Carpenter
- Re: [arch-d] Treating "private" address ranges sp… Toerless Eckert
- Re: [arch-d] Treating "private" address ranges sp… Geoff Huston
- Re: [arch-d] Treating "private" address ranges sp… Martin Thomson
- Re: [arch-d] Treating "private" address ranges sp… Toerless Eckert
- Re: [arch-d] Treating "private" address ranges sp… Joseph Touch
- Re: [arch-d] Treating "private" address ranges sp… Brian E Carpenter
- Re: [arch-d] Treating "private" address ranges sp… Brian E Carpenter
- Re: [arch-d] Treating "private" address ranges sp… Toerless Eckert
- Re: [arch-d] Treating "private" address ranges sp… Christian Huitema
- Re: [arch-d] Treating "private" address ranges sp… Martin Thomson
- Re: [arch-d] Treating "private" address ranges sp… Christian Huitema
- Re: [arch-d] Treating "private" address ranges sp… Ted Hardie
- Re: [arch-d] Treating "private" address ranges sp… Spencer Dawkins at IETF
- Re: [arch-d] Treating "private" address ranges sp… Michael Richardson
- Re: [arch-d] Treating "private" address ranges sp… Martin Thomson
- Re: [arch-d] Treating "private" address ranges sp… Spencer Dawkins at IETF
- Re: [arch-d] Treating "private" address ranges sp… Olaf Kolkman