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
In JsonWebTokenHandler.ValidateJwsAsync the actort claim is parsed into a JsonWebToken using JsonWebTokenHandler.ReadToken without checking the length of the token:
JsonWebTokenHandler.CanReadToken should be used to check if the actort token can be read before calling JsonWebTokenHandler.ReadToken to ensure the length check among other checks is satisfied. JsonWebTokenHandler.CanReadToken for reference:
In
JsonWebTokenHandler.ValidateJwsAsync
theactort
claim is parsed into aJsonWebToken
usingJsonWebTokenHandler.ReadToken
without checking the length of the token:azure-activedirectory-identitymodel-extensions-for-dotnet/src/Microsoft.IdentityModel.JsonWebTokens/JsonWebTokenHandler.ValidateToken.Internal.cs
Lines 361 to 363 in e6d316e
jsonWebToken.Actor
uses thisget
ter:azure-activedirectory-identitymodel-extensions-for-dotnet/src/Microsoft.IdentityModel.JsonWebTokens/JsonWebToken.cs
Lines 894 to 907 in e6d316e
JsonWebTokenHandler.CanReadToken
should be used to check if theactort
token can be read before callingJsonWebTokenHandler.ReadToken
to ensure the length check among other checks is satisfied.JsonWebTokenHandler.CanReadToken
for reference:azure-activedirectory-identitymodel-extensions-for-dotnet/src/Microsoft.IdentityModel.JsonWebTokens/JsonWebTokenHandler.cs
Lines 121 to 170 in e6d316e
All other usages of
JsonWebTokenHandler.ReadToken
should be checked to ensure a call toJsonWebTokenHandler.CanReadToken
is present before each usage.The text was updated successfully, but these errors were encountered: