Re:Critical Vulnerabilities in JSON Web Token Libraries
by Kiro on Wednesday April 01, 2015 @03:54AM
(#9302226)
I don't understand why you need the alg property at all. I mean, you are the one issuing the token so you definitely know what algorithm is used in the back-end. Why is this necessary?
[ Parent
| on HN ]
Re:Critical Vulnerabilities in JSON Web Token Libraries
by ultrafez on Wednesday April 01, 2015 @05:18AM
(#9302510)
If you change your algorithm, your old tokens are still usable because you know which algorithm was used to create them.
Re:Critical Vulnerabilities in JSON Web Token Libraries
by marcioaguiar on Wednesday April 01, 2015 @08:41AM
(#9303106)
It would not be possible to establish a period to migrate all tokens? This "if you change in a possible feature" is not a good argument when modeling something, in my opinion. That's how AbstractFactoryStrategies are made.
Re:Critical Vulnerabilities in JSON Web Token Libraries
by bronson on Wednesday April 01, 2015 @01:52PM
(#9305456)
That sounds like a very niche case, probably not worth solving. That said, the JWT lib could allow you to specify one or more fallback algorithms in case the default one fails to validate.
If you're switching off an algorithm, you're probably doing it because it's been broken. And, if it's broken, you won't use it anyway.
Re:Critical Vulnerabilities in JSON Web Token Libraries
by jessaustin on Wednesday April 01, 2015 @09:19AM
(#9303268)
As the issues described in TFA make clear, the verifier really should know the algorithm in order to verify completely. However, since this format allows various algorithms, the algorithm must be recorded somewhere, especially in the public-key scenario when the verifier is probably not the signer.
Re:Critical Vulnerabilities in JSON Web Token Libraries
by Kiro on Wednesday April 01, 2015 @09:33AM
(#9303365)
Thanks.
OT but what does TFA stand for? I've seen you use it in two threads and I presume it's referring to the posted article in question but I can't figure out the actual meaning.
Re:Critical Vulnerabilities in JSON Web Token Libraries
by williamcotton on Wednesday April 01, 2015 @09:50AM
(#9303483)
The F*ing Article... probably evolved from RTFM. Hacker culture, so warm and welcoming, isn't it?
Re:Critical Vulnerabilities in JSON Web Token Libraries
by zaroth on Wednesday April 01, 2015 @10:11AM
(#9303649)
That usage was deprecated by RFC19647. The correct definition is now 'The Featured Article'.
Re:Critical Vulnerabilities in JSON Web Token Libraries
by sp332 on Wednesday April 01, 2015 @10:09AM
(#9303629)
The abbreviation gives some plausible deniability - it could be "the fine article"!
Re:Critical Vulnerabilities in JSON Web Token Libraries
by jessaustin on Wednesday April 01, 2015 @10:08AM
(#9303623)
I've usually seen it as The Fine Article, but tastes vary. b^)