]> git.proxmox.com Git - proxmox-backup.git/commit
tfa: handle incompatible challenge data
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 19 Nov 2021 13:10:57 +0000 (14:10 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 19 Nov 2021 13:12:31 +0000 (14:12 +0100)
commitea67cd70c9d8b22f4b5596766528832ab8610c8e
treef075a8e1e56271d34a811b24c8f4f0d855631ab9
parent281a5dd1fcfb2f78bf20539a5552fb9b95dec10d
tfa: handle incompatible challenge data

by returning default data, in case the challenge data is not parseable.
this allows a new challenge to be started for the userid in question
without manual cleanup.

currently this can be triggered if an ongoing challenge created with
webauthn-rs 0.2.5 is stored in /run and attempted to be read
post-upgrade.

Reported-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/config/tfa.rs