Skip to content

Apple attestation CBOR validation #19

Description

@cdeln

Supplying a badly formatted CBOR as the attestation binary raises a KeyError when calling Attestation.verify

Error point:

pyattest/verifiers/apple_attestation.py", line 61, in unpack
    credential_data = raw["authData"][37:]

It would be nice if the CBOR payload is validated and an appropriate exception is raised if it's not.

My workaround is to catch KeyError in the server script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions