You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I ran my usual tests against tampered keys and I got a TypeError under MRI (2.0):
Provide a tampered token with "alg": "HSMAC" (with a valid signature)
Try to verify the token with an RSA public key
TypeError: no implicit conversion of OpenSSL::PKey::RSA into String
I've monkeypatched my app to also rescue TypeError and not just DecodeError but this is just a temporary solution. Interestingly the error does not appear under JRuby.
I've recently read the article about possible security flaws in the library.
I really liked the suggestion to also pass the algorithm and not just the key when verifying the token. Any thoughts on that?
The text was updated successfully, but these errors were encountered:
So I ran my usual tests against tampered keys and I got a TypeError under MRI (2.0):
"alg": "HSMAC"
(with a valid signature)TypeError: no implicit conversion of OpenSSL::PKey::RSA into String
I've monkeypatched my app to also rescue
TypeError
and not justDecodeError
but this is just a temporary solution. Interestingly the error does not appear under JRuby.I've recently read the article about possible security flaws in the library.
I really liked the suggestion to also pass the algorithm and not just the key when verifying the token. Any thoughts on that?
The text was updated successfully, but these errors were encountered: