mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-15 20:19:23 +00:00
core/webauthn: Ensure user-presence option is not present in MakeCredential requests.
This commit is contained in:
parent
e341f133a3
commit
528ee9ccf1
@ -1356,6 +1356,9 @@ def cbor_make_credential(req: Cmd, dialog_mgr: DialogManager) -> Optional[Cmd]:
|
||||
return cbor_error(req.cid, _ERR_CBOR_UNEXPECTED_TYPE)
|
||||
|
||||
# Check options.
|
||||
if "up" in options:
|
||||
return cbor_error(req.cid, _ERR_INVALID_OPTION)
|
||||
|
||||
if resident_key and not _ALLOW_RESIDENT_CREDENTIALS:
|
||||
return cbor_error(req.cid, _ERR_UNSUPPORTED_OPTION)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user