Re: Question about cookie protection and FormsAuthentication.Encry
- From: Dominick Baier <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 22 Feb 2007 17:24:20 +0000 (UTC)
If you don't enforce encryption and validation - everybody can create a ticket and use it to logon to your application - thats the implication ;)
-----
Dominick Baier (http://www.leastprivilege.com)
Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)
Just to make sure I am clear on this... are you saying if I manually
created the authentication ticket and I don't call
FormsAuthentication.Encrypt on the ticket then the cookie will NOT be
encrypted and tamper-proof? What are the security implications of not
having called FormsAuthentication.Encrypt when I manually create the
ticket? Thanks again for the information!
"Dominick Baier" wrote:
You only need to call Encrypt if you are manually creating the
FormsAuthenticationTicket and adding it to the cookies collection.
If you are using FormsAuthentication.SetAuthCookie or
RedirectFromLoginPage this is done automatically for you (according
to config settings).
-----
Dominick Baier (http://www.leastprivilege.com)
Developing More Secure Microsoft ASP.NET 2.0 Applications
(http://www.microsoft.com/mspress/books/9989.asp)
I'm a little unclear on when exactly I would need to use
FormsAuthentication.Encrypt. If I have the cookie protection in the
web.config set to All (i.e. <forms loginUrl="login.aspx"
protection="All">), shouldn't my cookie already be encrypted and
tamper-proof even if I don't encrypt the authentication ticket using
FormsAuthentication.Encrypt? What do I gain by also using
FormsAuthentication.Encrypt in addition to the the web.config
setting? Or is this more of a double-check than anything else?
.
- Prev by Date: Re: Create a role and check it
- Next by Date: Re: 2 membership databases
- Previous by thread: Re: Question about cookie protection and FormsAuthentication.Encrypt
- Next by thread: Re: Question about cookie protection and FormsAuthentication.Encry
- Index(es):
Relevant Pages
|