[OAUTH-WG] Re: PKCE RFC 7636 and registered URLs

Thomas Broyer <t.broyer@gmail.com> Tue, 01 October 2024 11:46 UTC

Return-Path: <t.broyer@gmail.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 4A3E9C14F736 for <oauth@ietfa.amsl.com>; Tue, 1 Oct 2024 04:46:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.106
X-Spam-Level:
X-Spam-Status: No, score=-2.106 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OUm8SZ60gyHC for <oauth@ietfa.amsl.com>; Tue, 1 Oct 2024 04:46:06 -0700 (PDT)
Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C898EC14F6FE for <oauth@ietf.org>; Tue, 1 Oct 2024 04:46:06 -0700 (PDT)
Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-2e06acff261so3963394a91.2 for <oauth@ietf.org>; Tue, 01 Oct 2024 04:46:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727783166; x=1728387966; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cWxVgagHcYXhklu1U0HwhpruN6C5EHHxEmgj70CWyGo=; b=jr0rMLGne4bL4nADQ/LipWG7m4mHek96t9b6PrjF7cHSkSgQbBDXAx6Ge1TitCemeB yaAJF06YW4ESFFXB9GV0KEEQOlTZOuVMwlSTSataUzv0T9vbIWF0jOP+a+pOdqPrEA6S jdAG64UMYiwiYQx4h/CDy9q1LT8Jzjx+nkhbOad5Q/YrusCIifb743S7iBt9hs5CQdc/ QAei2Xi7f5B20jtUw+jw0fUPnz2+MRqYica6s4EVjT8ghVJniyzjOhAxRGHBE6tGt51O rvJI51LNDmjii3mHcuwNalqd2hNkw66roHL0ZnH3TxSR8r2jgLw/vQZ4UM1Ze5Z5QqNY aklw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727783166; x=1728387966; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cWxVgagHcYXhklu1U0HwhpruN6C5EHHxEmgj70CWyGo=; b=l4SwgGwKwwEWtY9fyBjWfEYmyuNKP8oLrgHm0jzNvCj4Z73vZ51mgnPlCvJ/CT3f6u 1KWpF7Uuz+tlMMNvIhUcBRMqCyO90N8yTdl0B8ch6eoVN7nKWFzuWKBo5X0BpLRhPo2f CTIMM3ofqUc7Z6YcN4ixN/P3s2NPCi04PN8sN0v51f4Lao7Gd4SPDZI1nk87YnR7CJ2G XYvBZOiPDPx1iiZ6bM/5T/uAbpZTb3MGiUDZ5Qej7r2ftVCgSgxdnuF4EiDKOgDU5rnP ShCMHlqvb27h35PNVVyXpYO3FbSbC9SP4lMum9pnf/XB/dP2IWaAEgNKB87nHn3YWxsq 9D2Q==
X-Gm-Message-State: AOJu0YwviWHZHLQFhEQRPkEa5J4rhH8Slw5jF+dpw8AC6U4YQRZbz+l/ sWddxeC8osR6RDJjJqCUcuE1JiRFb0vsSXxdqdbdo80HG1qujPkB4+Q8NxkqkXtIRC3qcQcyb7b 4Ci8SWb2E8XN98/S/1mYXBbq/5ZM=
X-Google-Smtp-Source: AGHT+IEEK+KU4gBbD/IfQsbze4gj0RL12mTGuKiH0LV0xMwAbimAZ5YrxfijZIzN1uXDZjqmyD3thG3OEj1Qynf+/JA=
X-Received: by 2002:a17:90a:f989:b0:2d3:c976:dd80 with SMTP id 98e67ed59e1d1-2e0b8ee02admr15361326a91.39.1727783165844; Tue, 01 Oct 2024 04:46:05 -0700 (PDT)
MIME-Version: 1.0
References: <CAMtUnc4dr68yohygY4eqEwEVNtgv5Fx2uj-=oFZ3gRRmyEvp=g@mail.gmail.com> <AB5BD5B8-1D82-451E-8F22-61DA8D02A3F3@gmail.com> <A10707A6-9E53-49AC-A33E-B90FEAD6E08A@authlete.com> <CAMtUnc4ajouz-a45Y+gLv8hffnABBb0TwgdDkUCO5HqRZOQK0g@mail.gmail.com> <BE1P281MB20975E312A88C8E888F6C0ACED772@BE1P281MB2097.DEUP281.PROD.OUTLOOK.COM>
In-Reply-To: <BE1P281MB20975E312A88C8E888F6C0ACED772@BE1P281MB2097.DEUP281.PROD.OUTLOOK.COM>
From: Thomas Broyer <t.broyer@gmail.com>
Date: Tue, 01 Oct 2024 13:45:54 +0200
Message-ID: <CAEayHEMZbcTuXa=6+W6viBwppvhgPp6+aj0XE-Rg5GtRsjYqxw@mail.gmail.com>
To: Axel.Nennker@telekom.de
Content-Type: multipart/alternative; boundary="000000000000d96601062368ddad"
Message-ID-Hash: 2BZ4Z6SYZVDVIDQCJH6EKPGFM3BKPNXN
X-Message-ID-Hash: 2BZ4Z6SYZVDVIDQCJH6EKPGFM3BKPNXN
X-MailFrom: t.broyer@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-oauth.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: oauth@ietf.org, nat@sakimura.org
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [OAUTH-WG] Re: PKCE RFC 7636 and registered URLs
List-Id: OAUTH WG <oauth.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/pgO3Gpnoc-OrBlQnrZLqE-ImlBM>
List-Archive: <https://mailarchive.ietf.org/arch/browse/oauth>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Owner: <mailto:oauth-owner@ietf.org>
List-Post: <mailto:oauth@ietf.org>
List-Subscribe: <mailto:oauth-join@ietf.org>
List-Unsubscribe: <mailto:oauth-leave@ietf.org>

Fwiw, RFC 8252 (https://datatracker.ietf.org/doc/html/rfc8252) also talks
about “claimed "https" scheme URIs”.
And OAuth 2.1 (
https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-11) will
consolidate all those RFCs into one.

On Tue, Oct 1, 2024 at 11:45 AM <Axel.Nennker@telekom.de> wrote:

> Hi,
>
>
>
> is this sentence in the introduction of RFC 7636
> <https://datatracker.ietf.org/doc/html/rfc7636> still true?
> “The Redirection Endpoint URI in this case *typically* uses a custom URI
>
>    scheme.”
>
>
>
> I think mobile applications should be registered by the developer for
> their domain.
>
> If the developer has control over their backend/webserver they can easily
> setup up .well-known files for Android and iOS to find that binds the
> mobile app to that domain.
>
> Example by DT/TDG:
>
> https://www.telekom.de/.well-known/apple-app-site-association
>
> The appId is bound to the paths at that domain.
>
> Android also allows an app to bind itself to an URL
>
> https://developer.android.com/training/app-links/verify-android-applinks
>
>
>
> Is the word “typically” still true nine years after rfc7636 was written?
>
>
>
> I suggest removing the word “typically” in the introduction and adding a
> security section that recommends registering the mobile app for an URL.
>
>
>
> 7.6 Registering the mobile app for an URL
>
> Major operating systems and app store management systems allow the
> registration of an URL to a mobile app.
>
> With an URL registered to the mobile app an attacker cannot register their
> malicious app for the same URL as the mobile app.
>
> It is RECOMMENDED that the developer of the mobile app binds the app to an
> URL.
>
>
>
> Or are these url-binding-to-app mechanisms of Android and iOS too
> proprietary? I would not mention them by name in an RFC.
>
> But the majority of (native) mobile apps can register their URL and I
> think the RFC should mention this security measure.
>
>
>
> Also, I am wondering why this mechanism is not mentioned in
> https://datatracker.ietf.org/doc/draft-parecki-oauth-first-party-apps/
>
> I probably missed discussion on the mailing list.
>
> I found some mention of universal link e.g.
> https://mailarchive.ietf.org/arch/msg/oauth/cN0uYaEd5uOLEprCwc-0wJjKJfs/
> in 2020 but these discussion did not lead to anything in RFCs or drafts.
>
> Why?
>
> I think that if developers can register an URL to their native mobile app
> then they should do that.
>
>
>
> Kind regards
>
> Axel
>
>
>
>
>
>
>
>
>
> _______________________________________________
> OAuth mailing list -- oauth@ietf.org
> To unsubscribe send an email to oauth-leave@ietf.org
>


-- 
Thomas Broyer
/tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>