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
Which version of Microsoft.IdentityModel are you using?
7.4.0
Where is the issue?
M.IM.JsonWebTokens
Actual behavior
This check incorrectly checks if dot 3 is at the last index (in a malformed JWE). The code still works since JWE in a.b.c. format will be caught when dot 4 is checked.
if(Dot3== encodedTokenSpan.Length)// TODO: Should this be encodedJsonSpan.Length - 1?
The text was updated successfully, but these errors were encountered:
pmaytak
added
Bug
Product is not functioning as expected
P3
If we have time in the milestone or it just is easy when addressing a more important issue
labels
Feb 28, 2024
Which version of Microsoft.IdentityModel are you using?
7.4.0
Where is the issue?
Actual behavior
This check incorrectly checks if dot 3 is at the last index (in a malformed JWE). The code still works since JWE in
a.b.c.
format will be caught when dot 4 is checked.azure-activedirectory-identitymodel-extensions-for-dotnet/src/Microsoft.IdentityModel.JsonWebTokens/JsonWebToken.cs
Line 466 in fc61f2c
The text was updated successfully, but these errors were encountered: