IdentityServer / IdentityServer2

[deprecated] Thinktecture IdentityServer is a light-weight security token service built with .NET 4.5, MVC 4, Web API and WCF.
Other
410 stars 291 forks source link

A potentially dangerous Request.Form value in Password #832

Open lestersconyers opened 9 years ago

lestersconyers commented 9 years ago

When a user attempts to enter a password that contains an angle bracket, they get an error that states

A potentially dangerous Request.Form value was detected from the client (Password="87s*17s(~<Z81dxs)1z")

Description: ASP.NET has detected data in the request that is potentially dangerous because it might include HTML markup or script. The data might represent an attempt to compromise the security of your application, such as a cross-site scripting attack. If this type of input is appropriate in your application, you can include code in a web page to explicitly allow it. For more information, see http://go.microsoft.com/fwlink/?LinkID=212874.

This is default ASP.NET behavior but I'm tempted to allow "dangerous" content for the password as I don't think it's wise to limit the wildcard characters a user can choose. Has anyone else run across this dilemma? What are you thoughts?