fastify-bearer-auth
Affected
- introduced
5.0.1, last affected6.0.3(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: CVE-2022-31142
fastify-bearer-auth vulnerable to Timing Attack Vector
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:
High Basis: The source's own band: HIGH
5.0.1, last affected 6.0.3 (semver)None listed
No fixed version is listed.
0, fixed 7.0.2 (semver)7.0.2
7.0.2npm install @fastify/[email protected]8.0.0, fixed 8.0.1 (semver)8.0.1
8.0.1npm install @fastify/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0