Menu

#9 StringIndexOutOfBoundsException in SpnegoProvider

v1.0 (example)
open
None
3
2021-07-29
2021-07-29
No

SpnegoProvider#getAuthScheme calls String#substring without checking its length first.
Can be repaired by adding the additional checks header.length() > "Negotiate".length() and header.length() > "Basic".length() to the existing if-statements.

Discussion


Log in to post a comment.