olehlong / jwtd

D implementation of JSON Web Token.
MIT License
30 stars 13 forks source link

Only accept "alg":"none" when verification key is empty #14

Closed lionello closed 7 years ago

lionello commented 7 years ago

This is a critical vulnerability that needs to be addressed, as per notes on https://auth0.com/blog/critical-vulnerabilities-in-json-web-token-libraries/

TL;DR: do not silently accept "alg":"none" JWTs, since it's easy for callers to strip off the signature.