You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When parsing the metadata, PatternAccuracyDescriptor.MinComplexity is too small; needs to be uint64 not uint32.
Reproduction
Parsing the latest version of the metadata blob (no=80):
json: cannot unmarshal number 34359738368 into Go struct field PatternAccuracyDescriptor.metadataStatement.userVerificationDetails.paDesc.minComplexity of type uint32
some pseudo code:
import (
webauthnMetadata "github.com/go-webauthn/webauthn/metadata"
)
...
func() whatever(j *jwt) {
raw := j.Payload.RawVal("entries")
var entries []webauthnMetadata.MetadataBLOBPayloadEntry
if err := json.Unmarshal(raw, &entries); err != nil {
return err
}
}
What evidence to the idea that it must be a uint64 and not an unbounded number is there?
Is there a way to get confirmation that it is strictly 32 bits, and if so have that blob updated?
What additional confirmation would satisfy you other than the people who manage the MDS telling you that in the v3 vendor statements the value must be between 0 and 4294967295?
The entry that is causing problems is "aaid": "0056#0002" ("PixelPin - Picture Login") and, unless I am mistaken, this is the only entry with a userVerificationDetails.paDesc.minComplexity value; it has also been around since 2018.
Ping @dturnerx - can you help clarify (or suggest who else could resolve) this situation? Is the MDS blob (no = 80) borked wrt this entry, or is the entry correct but the spec slightly off (and it really should say uint64).
Version
0.10.1
Description
When parsing the metadata, PatternAccuracyDescriptor.MinComplexity is too small; needs to be uint64 not uint32.
Reproduction
Parsing the latest version of the metadata blob (no=80):
some pseudo code:
Expectations
modify to
uint64
webauthn/metadata/metadata.go
Line 239 in 7dee1ee
Documentation
No response
The text was updated successfully, but these errors were encountered: