IdentityServer / IdentityServer3

OpenID Connect Provider and OAuth 2.0 Authorization Server Framework for ASP.NET 4.x/Katana
https://identityserver.github.io/Documentation/
Apache License 2.0
2.01k stars 763 forks source link

TokenRequestValidationLog leaking passwords #3887

Open ekeij opened 7 years ago

ekeij commented 7 years ago

Scrubbing of sensitive information in TokenRequestValidationLog is case-sensitive. This can cause an issue with the ResourceOwner flow when a user provides invalid credentials and the client posting the credentials does not match a fieldname exactly. So if the fieldname is "Password" instead of "password", the password is not scrubbed and is leaked to the log.