News for hackers. Stuff that matters.
Re:Don't use JSON web tokens for sessions by jupenur on Monday June 13, 2016 @05:46PM (#11897971)
> Unless you've used cookies with the HttpOnly flag XSS trivially escalates to session stealing

Then again you could just use CSP and mitigate almost 100% of those XSS cases. Yes, even most of the stored ones. And with JWT + JavaScript you don't have to worry about all the oddities in the way cookies work, which is a huge plus.

Re:Don't use JSON web tokens for sessions by mwpmaybe on Monday June 13, 2016 @06:16PM (#11898191)
CSP isn't a silver bullet.
Re:Don't use JSON web tokens for sessions by seangrogg on Monday June 13, 2016 @07:45PM (#11898698)
Nor is HttpOnly, really.
Re:Don't use JSON web tokens for sessions by mwpmaybe on Monday June 13, 2016 @08:50PM (#11899004)
I never said it was.