Re: [OAUTH-WG] Android App Links (AKA Universal Links)

Joseph Heenan <joseph@authlete.com> Wed, 04 November 2020 12:29 UTC

Return-Path: <joseph@authlete.com>
X-Original-To: oauth@ietfa.amsl.com
Delivered-To: oauth@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DA5D43A1091 for <oauth@ietfa.amsl.com>; Wed, 4 Nov 2020 04:29:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_NONE=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=authlete-com.20150623.gappssmtp.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 E161EhkkK1xA for <oauth@ietfa.amsl.com>; Wed, 4 Nov 2020 04:29:45 -0800 (PST)
Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (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 9AB163A1086 for <oauth@ietf.org>; Wed, 4 Nov 2020 04:29:45 -0800 (PST)
Received: by mail-wm1-x32b.google.com with SMTP id d142so2154825wmd.4 for <oauth@ietf.org>; Wed, 04 Nov 2020 04:29:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=authlete-com.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=snzPMuzoJdxf9I280WIaegM1xW0e7QoR3H74Df94978=; b=G4K4Xsz3uVu4ao7knbAALCEGh0JyoyRGRmaXF/D0p045+e2hofDhMtGR/MBcbfc4mA Dli6fdQ2KY+tEpCidrNsIPL9waEAoBGWUN57T/LoP6cwf3GsZQZsZB96NiMHoLcDi1tD GvsBg8QFChUjhmEWHz1l3JoiajmGNki8OJ2yIOXOO/reSccDsd/2tQNsiO8GiMSF6m0x HPh3Yg8FoWNKXH9/+OU3DWP/NpYJj3e12Ev2Sb/2ajM5lsEw9e/vEnp2GBTgenWQWilg Ep1+Ww607SJfqGr1O8k5cfaYzGzRaK2bPs1O+Io+SaZaujnRZy+hcpqiL6Yw6j04JnMI T5aQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=snzPMuzoJdxf9I280WIaegM1xW0e7QoR3H74Df94978=; b=pHkEoc3EViFKAj5XevlxfwUTe4muYmX7Z/fbdJO6b9xGDezAWl/aVqPpgLCZtQ9yQ3 RMG7smibXAQ1Mb7TB/rX2Oyqwaer5a3eCrJqIfyxZyvVk8oaIFHnxKJ8TioxJPDCkJzH n0EIzVd9lvPPGPVC1wjheiKznCF2bNbab/4cTTAF6INwQAHPjoxrtKIvbJeLhJMIO9Pn MyvtdCQUnvPJQrF5CJ+oyzl874o3GUHKNSDhE1+dh121L013wbK7/ZQDkciNuF/nFxja H8/5rG+mzHob+lMcrRaISmWwnbPxXwkJ+MGmK2OpUG9OeIGMyAEoOmOhQcZe0VeY1fqk 6GJQ==
X-Gm-Message-State: AOAM531uQEwyDJSuEmWf4O1eUo+aStTfJwYCW9wZkNNypXQsq1WdNEVZ U5ukYKZ2O1R1fKH72+YKti2mUj1lOBDbbMr+
X-Google-Smtp-Source: ABdhPJwBWk85hs8oP6Fk/oO5Jgu6sh+6opxK+QxCsivjazz1YG4kSxIT+fyM7Qc7q4iBTkvMKK0drA==
X-Received: by 2002:a7b:cbc3:: with SMTP id n3mr4422145wmi.68.1604492983883; Wed, 04 Nov 2020 04:29:43 -0800 (PST)
Received: from dhcp121.sh2.org.uk (home.heenan.me.uk. [212.159.108.133]) by smtp.gmail.com with ESMTPSA id l16sm2259921wrx.5.2020.11.04.04.29.42 for <oauth@ietf.org> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Nov 2020 04:29:43 -0800 (PST)
From: Joseph Heenan <joseph@authlete.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_0E04E49A-5E37-4E7E-9FFB-28D418646B04"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\))
Date: Wed, 04 Nov 2020 12:29:42 +0000
References: <CAD9ie-tixMTAbPOtzPUjZdM7oa6_Rw2Gfbup2NQHUHJMu9LBTg@mail.gmail.com> <65B3EF09-25F4-4F3E-96DD-05FA60F044D0@authlete.com> <CAD9ie-vFguzxNzgZKae2Qjq_POrEVyznLXyKmg6MyG+xV4LfVA@mail.gmail.com> <49d1a3ce-619e-abe7-5c4f-7c2fec8c8889@aol.com>
To: oauth <oauth@ietf.org>
In-Reply-To: <49d1a3ce-619e-abe7-5c4f-7c2fec8c8889@aol.com>
Message-Id: <A46D3FFB-2B4E-41BE-9519-A26512A5D8A0@authlete.com>
X-Mailer: Apple Mail (2.3608.120.23.2.4)
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/gNeMnFVFbo95ptScQxdW_0WTy48>
Subject: Re: [OAUTH-WG] Android App Links (AKA Universal Links)
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/oauth>, <mailto:oauth-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/oauth/>
List-Post: <mailto:oauth@ietf.org>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/oauth>, <mailto:oauth-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Nov 2020 12:29:48 -0000

Thanks George :) That’s a shame, I would have liked to listen to the recording.

My email below was thinking of the OSW interactive sessions (we had about 2 hours of technical discussion on some of the issues with implementing app2app in practice particularly on Android), but now I’ve looked I think perhaps the recordings of those weren’t published. I have been working on a blog post with others that delves more into the Android side of things, hopefully we will publish that in the not too distant future.

I did an identiverse session too, which although it starts out quite similar diverges after about 10 minutes, delving less into the detail of security and covering more of the higher level what/why/how: https://identiverse.gallery.video/detail/video/6186099813001/

Joseph

> On 3 Nov 2020, at 22:12, George Fletcher <gffletch@aol.com> wrote:
> 
> I sent in some notes but I don't have a link for the recording. I don't believe the recordings were being kept much past the end of the conference. I'm pretty sure I heard that the recordings would be removed after N days (I don't remember what N was stated as:)
> 
> Joseph explanation is better than I could have given and matches my understanding as well.
> 
> Thanks,
> George
> 
> On 11/3/20 2:13 PM, Dick Hardt wrote:
>> Thanks Joseph.
>> 
>> George Fletcher ran a great session on the topic at the last IIW as well.
>> 
>> George: do you have a link?
>> 
>> ᐧ
>> 
>> On Tue, Nov 3, 2020 at 11:09 AM Joseph Heenan <joseph@authlete.com> <mailto:joseph@authlete.com> wrote:
>> 
>>> Hi Dick
>>> 
>>> I didn’t attend the call so don’t know the background of this and the
>>> exact situation, but the general problem is mostly where the Authorization
>>> Server’s app is *not* installed. In that case Android falls back to much
>>> weaker mechanisms that allow other apps to get a look in. App links also
>>> aren’t consistently supported across all commonly used android browsers
>>> which causes further problems.
>>> 
>>> In general to do app2app oauth redirections securely on Android it’s
>>> necessary for both apps to fetch the /.well-known/assetlinks.json for the
>>> url they want to redirect to, and verify that the intent the app intends to
>>> launch to handle the url is signed using the expected certificate. Web2app
>>> flows are trickier, on both iOS and on Android. There were lengthy
>>> discussions on at least the Android case at OAuth Security Workshop this
>>> year (recordings available).
>>> 
>>> Joseph
>>> 
>>> 
>>> On 20 Oct 2020, at 00:09, Dick Hardt <dick.hardt@gmail.com> <mailto:dick.hardt@gmail.com> wrote:
>>> 
>>> Hey Vittorio
>>> 
>>> (cc'ing OAuth list as this was brought up in the office hours today)
>>> 
>>> https://developer.android.com/training/app-links <https://developer.android.com/training/app-links>
>>> 
>>> An app is the default handler and the developer has verified ownership of
>>> the HTTPS URL. While a user can override the app being the default handler
>>> in the system settings -- I don't see how a malicious app can be the
>>> default setting.
>>> 
>>> What am I missing?
>>> 
>>> /Dick
>>> ᐧ
>>> _______________________________________________
>>> OAuth mailing list
>>> OAuth@ietf.org <mailto:OAuth@ietf.org>
>>> https://www.ietf.org/mailman/listinfo/oauth <https://www.ietf.org/mailman/listinfo/oauth>
>>> 
>>> 
>>> 
>