News for hackers. Stuff that matters.
Re:Critical Vulnerabilities in JSON Web Token Libraries by zaroth on Wednesday April 01, 2015 @07:04AM (#9302776)
> how are the JSON web tokens typically authenticated if not via a database?

They are signed with a private key (e.g. a secret random 32-bytes kept by the server) when they are issued. Revocation is typically based on an expiration time, hence the timestamp in the header.

The JWT libraries in this case failed their basic premise, that is, to verifying the signature. An unsigned token which contains trusted data is just an open door for the user to claim whatever they want.

The centralized session model is easier to reason about, but has many pitfalls. Now all your servers need to be able to contact that centralized state in order to service even a basic request. HMAC is very fast, much faster than pulling central state from a network service. If you're asking a client to maintain a session token, might as well ask them to maintain the session state itself if it's small enough to fit in a cookie.

I would guess the reason for any downvote is the question you're asking is directly addressed by TFA, so it strongly implies you didn't bother to read it.

Re:Critical Vulnerabilities in JSON Web Token Libraries by laumars on Wednesday April 01, 2015 @12:21PM (#9304741)
> I would guess the reason for any downvote is the question you're asking is directly addressed by TFA, so it strongly implies you didn't bother to read it.

Yeah, in hindsight I can see how some might assume that. I did read the article but was very confused by it. I was having a particularly dim moment and just couldn't fathom JWT's out (I guess we all have days where even the simple things don't seem to mentally "click"?)

Thankfully yourself and others have done a good job explaining things (reiterating where necessary).

Thank you :)