-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
As per W3C RP ID specs at https://w3c.github.io/webauthn/#relying-party-identifier
"Given a Relying Party whose origin is https://login.example.com:1337, then the following RP IDs are valid: login.example.com (default) and example.com, but not m.login.example.com and not com."
However, fc does a rpIdHash === sha(clientDataJSON.origin) match which is too strict and does not cover the case where the origin may be login.example.com while the rp id is example.com:
fc/src/crypto/elliptic_webauthn.cpp
Line 213 in ff56d25
| FC_ASSERT(memcmp(c.auth_data.data(), fc::sha256::hash(rpid).data(), sizeof(fc::sha256)) == 0, "webauthn rpid hash doesn't match origin"); |
DenisCarriere
Metadata
Metadata
Assignees
Labels
No labels