3 ms·
> Which spec are you referring to? OK, this one's on me. I can't find the reference, and I took an article at face value: https://auth0.com/blog/critical-vulne
by cratermoon 6y ago
> Which spec are you referring to?
OK, this one's on me. I can't find the reference, and I took an article at face value: https://auth0.com/blog/critical-vulnerabilities-in-json-web-token-libraries https://auth0.com/blog/critical-vulnerabilities-in-json-web-...
There are libraries that allow Bad Things, though, and best practice now is just to ignore the `alg` field. As the github repo you linked says, "There have been ways to exploit JWT libraries by replacing RS256 with HS256 and using the known public key as the HMAC-SHA256 key, thereby allowing arbitrary token forgery."