News for hackers. Stuff that matters.
Re:Things to Use Instead of JSON Web Tokens by ZoneGhost on Monday May 08, 2017 @11:54AM (#14292681)
For the record, JWT is a payload and format spec for JWS/JOSE, which is really what you're complaining about. JWT is merely a claims set and an optional dot-notation serialization of a single signature.

JWT/JWS libraries that handle all the validation alone are treacherous. You should ALWAYS parse the JSON before hand, perform your claims and header(s) validation, and then pass the payload/header/signature. If anything, it's computationally less risky than running the signature blindly through a signature validation function and then checking the header.

Re:Things to Use Instead of JSON Web Tokens by kevinburke on Monday May 08, 2017 @12:37PM (#14293167)
you could also choose to use safer libraries and cryptographic primitives
Re:Things to Use Instead of JSON Web Tokens by ZoneGhost on Monday May 08, 2017 @01:54PM (#14293924)
There's nothing a library can add to make things "safer" when it comes to application-specific constraints. If I'm checking to make sure I only accept a specific algorithm, I'm not going to blame a crypto library for validating something that is technically accurate (short of maybe disabling the "none" algorithm by default). You should also be in possession of at least the public key beforehand, and rely on that for authentication, rather than anything in the claim.