-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Jwts.parser().parseClaimsJws(badString) throws ArrayIndexOutOfBoundsException #285
Comments
Same error is occured my project. I changed the following lines I guess reason this https://bugs.openjdk.java.net/browse/JDK-8168456 |
I agree. For my use I handled the problem by catching and handling ArrayIndexOutOfBoundsException. |
Keeping this issue open, and should be completed with #333. The (assumed new) |
This has been released in 0.10.0. |
Hi !
I validate JWT's using: https://github.com/jwtk/jjwt/blob/master/src/main/java/io/jsonwebtoken/JwtParser.java#L396
When I tamper with my input string, JwtParser.parseClaimsJws(String var1) throws an ArrayIndexOutOfBoundException:
The error can easily be reproduced by inverting the bits in a random charachter in the JWT I use as input.
(If you have trouble reproducing I can provide a test)
cheers,
Ingebrigt
The text was updated successfully, but these errors were encountered: