Reputation: 91845
I've just started working on implementing my first public-facing website. Since I'm new to this, I think if a list of common pitfalls, what they are, and how to avoid them is warranted.
I'm looking for things like:
If a topic has been dealt with in another question, a quick summary and a link to that question would be a good idea.
Upvotes: 4
Views: 727
Reputation: 11535
=Html.Encode(yourPossibleCompromisedData)
to render data to your page you should be fine. these helpers are designed to stop injected code being executed on the browser. ASP.NET also has form protection stopping malicious code from being posted to your actions (this is not MVC but aspnet itself).=Html.ValidationSummary()
hidden field for forms so to mitigate cross-site scripting.Upvotes: 1