enclave-os-mini: FIDO2 clone detection was bypassed by an authenticator reporting a zero sign count
Original description The description as published by the source.
Enclave OS Mini is a Rust-based runtime for confidential applications inside Intel SGX enclaves. Prior to enclave-os-mini-wasm version 0.53.0 and enclave-cluster version 0.8.0, Enclave OS Mini's FIDO2 clone-detection guard skipped comparison whenever auth_data.sign_count was zero, even if record.sign_count already held a nonzero value. A cloned authenticator with copied credential private-key material could continually report zero and authenticate without triggering the non-increasing-counter signal. Authenticators whose counters have always remained zero are still accepted because WebAuthn treats that state as an unsupported counter; the flaw is the counted-to-zero transition. This issue is fixed in enclave-os-mini-wasm version 0.53.0 and enclave-cluster version 0.8.0.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- web github.com