tags:

views:

51

answers:

1

I have a complete unsafe mvc application. And now I started to think about security. Cause I use a couple of ajax I will close this securityhole with AntiForgeryToken is this a good way to stop Injection attacks?.

Next I thought about authentication and how i could manage my users. Than I decided to use the users of my Domain. But how can I auth from mvc to the user base of my Microsoft Domainserver? And whats about HTTPS. how can I activate that

thanks for your ideas. And I definitely forgot some details so please ask me for them!

+1  A: 

AntiForgeryToken will not stop injection attacks. It will prevent cross-site attacks.

Stop injection attacks by never constructing SQL queries from user strings. Always user parameterized queries.

Your authentication scheme depends on your needs. If your users are already in Active Directory, then manage them from you domain server. Otherwise, create a user database.

HTTPS is activated on the web server.

Jeremy Stein
ahhh okay, I use IIS 6.0 do you know a good tutorial for it?
Markus
Markus
If you want a certificate accepted by browsers, you'll need to pay for it. Pick a cheap one that's accepted by the major browsers. http://www.whichssl.com/comparisons/index.html
Jeremy Stein