Do ASP.NET forms authentication cookies provide any protection against replay attacks? Do they, for example, include the client's IP address or anything else that would distinguish the real client from an attacker?

Answer Posted / surendra singh

No. If an authentication cookie is stolen, it can be used by an attacker. It's up to you to prevent this from happening by using an encrypted communications channel (HTTPS). Authentication cookies issued as session cookies, do, however,include a time-out valid that limits their lifetime. So a stolen session cookie can only be used in replay attacks as long as the ticket inside the cookie is valid. The default time-out interval is 30 minutes.You can change that by modifying the timeout attribute accompanying the <forms> element in Machine.config or a local Web.config file. Persistent authentication cookies do not time-out and therefore are a more serious security threat if stolen.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can master pages be nested?

516


Disable Mouse right click on web page in asp.net?

584


What is the difference between mechine.config and web.config?

734


What are directives in asp.net?

534


What is an imagemap in asp.net?

554






How do we ensure view state has not tampered?

607


Explain program to call the js function when the change is being made in the dropdown list made in asp.net mvc? : asp.net mvc

530


What is the purpose of using MVC programming pattern in ASP.NET?

557


Can we set which type of comparison we want to perform by the CompareValidator control?

519


How many web config files can be created for an application?

452


If 200 is for all successful operation then why do we have 201 response codes?

526


Explain the advantages of passport authentication.

509


What is true about application service provider?

492


Can we have a web application running without web.config file?

525


How can I configure asp.net applications that are running on a remote machine?

539