-
Notifications
You must be signed in to change notification settings - Fork 366
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
Token without ExpiresAt runs panic #223
Comments
Ok this is a weird one. It is probably 50 % a bug and 50 % a slight mis-use of the API. One of the issues is that your This In general, I would recommend embedding not a pointer to I am not even sure that we can really do anything to fix this in the parser to be honest. |
Thanks @oxisto remove the pointer in jwt.RegisteredClaims works, you can close this, but I think that the example need to be changed.
|
A fix or an ETA is appreciated. Twistlock reports this vulnerability as
|
Not sure if this is really a vulnerability. This is primarily an API mis-usage and probably a bad example. I can try to fix the example and see whether we can add an extra guard against an empty pointer. |
I looked a bit more into the issue and I am afraid we cannot really "solve" this as this is a shortcoming of the Go language. The problem lies in this line of the original code:
Here, a I tried to at least fix the example and add it to the description via #255 |
the 4.4.3 release is still beeing flaged by Prisma Cloud as a vulnerability sadly |
Token without ExpiresAt runs panic, the panic has a recovery, but it would be better have an error.
Sample code: Code in Playground
The text was updated successfully, but these errors were encountered: