arx-research / libhalo

LibHaLo - Programmatically interact with HaLo tags from the web browser, mobile application or the desktop.
https://arx.org/?source=gh
MIT License
32 stars 4 forks source link

HaLo: Validate command.message and command.digest for correctness when signing #216

Closed icedevml closed 12 months ago

icedevml commented 12 months ago

Right now it's possible to pass malformed command.message or command.digest value when signing. The buffer will be incorrectly decoded and this might lead to unexpected results or signing a different value than expected. This PR would introduce input validation for these parameters and fail early if something is malformed.

Description

Checklist

Changes to the drivers

Changes to CLI

Changes to web library

Changes to nfc-manager driver