.NET Questions (CLOSED)Questions and Answers on any aspect of .NET. Now closed. |
||
|
This discussion group is now closed.
Have a question about .NET development? Try stackoverflow.com, a worldwide community of great developers asking and answering questions 24 hours a day. The archives of .NET Questions contain years of Q&A. Even older .NET Questions are still online, too. |
What are people doing about session fixation attacks in ASP.Net? (http://www.webappsec.org/projects/threat/classes/session_fixation.shtml)
Most web-based exploits (like XSS) are pretty easy to avoid. It's all about not trusting user data. But what do you do when your framework trusts user data without asking you? Microsoft has closed a request for a fix (https://connect.microsoft.com/feedback/viewfeedback.aspx?FeedbackID=143361&wa=wsignin1.0&siteid=210) and instead they offer a simple 55-line code snippet that you can include in every ASP application you create (http://support.microsoft.com/kb/899918). All 55 lines could be replaced by a call to (the hypothetical) Session.CreateNewIdentifier() function. Are your web apps vulnerable? If not, what are you doing to prevent this? (Apologies if this sounds like FUD... I'm really just looking for some solutions.)
I use a guid stored in a cookie to identify the client (I don't rely on session cookies/variables). New logins generate a new guid (they are not reused), and I valid session guids against a timeout value in the database.
This is in addition to using SSL, so outside of a compromised client (or server/database), I don't see how this is a threat.
Jim Tuesday, April 24, 2007
Are there any known cases of this kind of attack actually being pulled off or are we just in theory land here?
Err Tuesday, April 24, 2007 |
|
Powered by FogBugz


