Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate token algorithm in Parse/Verify functions. #1

Open
itsjamie opened this issue Jun 7, 2015 · 3 comments
Open

Validate token algorithm in Parse/Verify functions. #1

itsjamie opened this issue Jun 7, 2015 · 3 comments

Comments

@itsjamie
Copy link

itsjamie commented Jun 7, 2015

Vulnerability that allows a user to generate a valid token is possible due to some behaviour between certain algorithms, if all are accepted it would allow a user to generate valid tokens with only the public key for RSA. You might not keep the same stringent set of security around your public key.

https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries/

@raulgzm
Copy link

raulgzm commented Jun 8, 2015

Hi Jamie,

We are working on it right now! We hope publish a workaround ASAP.

Thank you!

@itsjamie
Copy link
Author

itsjamie commented Jun 8, 2015

For the easy method, you just need to pick a single algorithm that you will use for your tokens, and then validate that inside the token.Verify method where you must return the key to use.

I believe jwt-go has an example on their repo.

@raulgzm
Copy link

raulgzm commented Jun 8, 2015

Thanks Jamie,

We have just commited a workaround to fix the vulnerability in JWT. We'll publish a new article in our blog to share and show our temporary workaround. We hope there will be a library update soon to remedy this.

Thanks a lot Jamie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants