From 91357673ef2c41cefb12241dc105babb034df28f Mon Sep 17 00:00:00 2001 From: Emil Lundberg Date: Wed, 14 Jun 2023 22:00:23 +0200 Subject: [PATCH 1/2] Add security consideration section "Validating the origin of a credential" --- index.bs | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 65 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index 6f2734374..ddc56db2d 100644 --- a/index.bs +++ b/index.bs @@ -5317,7 +5317,13 @@ In order to perform a [=registration ceremony=], the [=[RP]=] MUST proceed as fo 1. Verify that the value of |C|.{{CollectedClientData/challenge}} equals the base64url encoding of |options|.{{PublicKeyCredentialCreationOptions/challenge}}. -1. Verify that the value of |C|.{{CollectedClientData/origin}} matches the [=[RP]=]'s [=origin=]. + +
  • + Verify that the value of |C|.{{CollectedClientData/origin}} is an [=origin=] expected by the [=[RP]=]. + See [[#sctn-validating-origin]] for guidance. +
  • 1. If |C|.{{CollectedClientData/topOrigin}} is present: @@ -5326,6 +5332,7 @@ In order to perform a [=registration ceremony=], the [=[RP]=] MUST proceed as fo 1. Verify that the value of |C|.{{CollectedClientData/topOrigin}} matches the [=origin=] of a page that the [=[RP]=] expects to be sub-framed within. + See [[#sctn-validating-origin]] for guidance. 1. Let |hash| be the result of computing a hash over |response|.{{AuthenticatorResponse/clientDataJSON}} using SHA-256. @@ -5536,7 +5543,8 @@ In order to perform an [=authentication ceremony=], the [=[RP]=] MUST proceed as a numbered step. If outdented, it (today) is rendered as a bullet in the midst of a numbered list :-/ -->
  • - Verify that the value of |C|.{{CollectedClientData/origin}} matches the [=[RP]=]'s [=origin=]. + Verify that the value of |C|.{{CollectedClientData/origin}} is an [=origin=] expected by the [=[RP]=]. + See [[#sctn-validating-origin]] for guidance.
  • 1. If |C|.{{CollectedClientData/topOrigin}} is present: @@ -5545,6 +5553,7 @@ a numbered step. If outdented, it (today) is rendered as a bullet in the midst o 1. Verify that the value of |C|.{{CollectedClientData/topOrigin}} matches the [=origin=] of a page that the [=[RP]=] expects to be sub-framed within. + See [[#sctn-validating-origin]] for guidance.