Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 149323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:06:45+00:00 2026-05-11T09:06:45+00:00

I have recently started a personal project that uses ASP.NET MVC (RC1 at the

  • 0

I have recently started a personal project that uses ASP.NET MVC (RC1 at the time of writing). My background is traditional ASP.NET WebForms development.

My knowledge ASP.NET MVC is limited, so I would like your input on how to best approach authentication, input validation and protection against common attacks (XSS, XSRF, etc).

I’ll start by listing a few articles Stephen Walther posted on his blog:

  • Tip #7 – Prevent JavaScript Injection Attacks with Html.Encode
  • Tip #10 – Prevent URL Manipulation Attacks
  • Tip #46 – Don’t use Delete Links because they create Security Holes

Validation:

  • xVal Validation Framework

Thanks,
Arnie

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:06:46+00:00Added an answer on May 11, 2026 at 9:06 am

    Off the top of my head (and nowhere near complete)…

    • Use the AntiForgeryToken on all forms to protect against XSRF. Use unit tests to make sure that all controller actions that accept POSTS are decorated with the ValidateAntiForgeryToken attribute.

    • Make use of HtmlHelper extensions whereever possible to take advantage of automatic HTML encoding.

    • Use an ORM with parameterized queries for all DB access — not unique to MVC, but still relevant.

    • Be restrictive in the HTTP verbs that you accept to the minimum required. Use DELETE (vi AJAX) or POST for delete actions.

    • Use the AuthorizeAttribute, or an attribute derived from it, to protect non-public actions.

    • Don’t expose user ids/passwords in urls which might be cached (i.e., login via form POST rather than GET url). As always, use SSL for passing sensitive data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently started using ASP.Net MVC 3 RC 2 and have attempted to
I have recently started working on a very large C++ project that, after completing
I have recently started work on a project that has already been running for
I have recently started learning F#, and this is the first time I've ever
I've been a web developer for some time now, and have recently started learning
I have only recently started working with the MVC approach, so I suppose this
I just recently started a new personal project, with a goal of having it
I recently started working on a small personal project in Ruby on Rails, and
I recently started work on a personal coding project using C++ and KDevelop. Although
I have recently started using Rake for my personal projects, mainly because I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.