Skip to content

CLI Truncated Tag Authentication fix#222

Open
ikkebr wants to merge 2 commits intogoogle:masterfrom
ikkebr:master
Open

CLI Truncated Tag Authentication fix#222
ikkebr wants to merge 2 commits intogoogle:masterfrom
ikkebr:master

Conversation

@ikkebr
Copy link
Copy Markdown

@ikkebr ikkebr commented Mar 31, 2026

The CLI verify command accepts truncated authentication tags of arbitrary length, including a single byte. The verification routine base64url-decodes the user-supplied --tag argument and uses the decoded length as the comparison length for CRYPTO_memcmp(). No minimum tag length is enforced. An attacker supplying a 1-byte tag only needs to match the first byte of the real tag.

ikkebr added 2 commits March 31, 2026 09:32
No minimum tag length was enforced. A user supplying a 1-byte tag only needed to match the first byte of the real tag, reducing the authentication check to a 1-in-256 brute-force
Prevented Truncated Tag comparison
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant