fastify-bearer-auth vulnerable to Timing Attack Vector
High severity
GitHub Reviewed
Published
Jul 14, 2022
in
fastify/fastify-bearer-auth
•
Updated Jan 27, 2023
Description
Published by the National Vulnerability Database
Jul 14, 2022
Published to the GitHub Advisory Database
Jul 15, 2022
Reviewed
Jul 15, 2022
Last updated
Jan 27, 2023
Impact
fastify-bearer-auth does not securely use crypto.timingSafeEqual. A malicious attacker could estimate the length of one valid bearer token. According to the corresponding RFC 6750, the bearer token has only base64 valid characters, reducing the range of characters for a brute force attack.
All versions of fastify-bearer-auth are also affected.
Patches
We released:
Workarounds
There are no workarounds. Update your dependencies.
References
https://hackerone.com/reports/1633287
For more information
If you have any questions or comments about this advisory:
References