Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > ASP.Net 1.1 cookieless session security issue?

Reply
Thread Tools

ASP.Net 1.1 cookieless session security issue?

 
 
Stefan Hoffmann
Guest
Posts: n/a
 
      09-28-2005
Hello everyone!

We are developing a webshop in asp.net. We did not want to use cookies
for session management, so we tried cookieless sessions.


This changes the URL requested to something like


http://.../WebApplication3/(xwa4n4a3.../WebForm1.aspx


Well, this -> (xwa4n4a3cr45h2idog25v355) is the session id. Someone
sniffing on the net can easily obtain this request and use it from
another computer. As long as the session still exists this someone will
have full access to all the users information at this moment. I thought
at least it should be bound to a IP to prevent such attacks from other
networks than the one the user is using at the moment.


Another not really nice behaviour of the cookieless session management
is, that you can reuse(or maybe better:inject?) session ids. When the
session has already expired and you use a link with a session id,
asp.net will create a new session - but use the old id.
Now - you can imagine what happens if someone posts such link into a
forum or something (to e.g. show all his friends that there is a
wonderful cheap and extremly useful article in the webshop). They will
be shopping in a group (hey - nice feature :/)...
Additionally I don't have a clue how to prevent these ids from being
bookmarked. I don't really want every user in the shop have his or her
own private session id.


Any proposals how to circumvent these problems?
Maybe i just configured something really wrong?


Thanks in advance,
Stefan Hoffmann
PS: If you don't understand my english, ask and i will try to explain.




 
Reply With Quote
 
 
 
 
Dennis Vroegop
Guest
Posts: n/a
 
      09-28-2005
In article <>, s.hoffmann@d-s-a-
g.de says...
> Hello everyone!
>
> We are developing a webshop in asp.net. We did not want to use cookies
> for session management, so we tried cookieless sessions.
>
>

This is a well-known shortcoming. At the last PDC in Los Angeles this
was demonstrated by Microsoft Employees themselves. It's very easy for
someone to fake a session-id and suddenly find himself in someone elses
session. That's not what we want!

There is a good article on this at
http://www.developer.com/net/vb/article.php/2216431 where you can find
more information about this and how to prevent this from happening. It's
a good article so I won't try to replicate it here. Just read it (No,
I am not the author of that article nor do I get payed for advertising
it)

Good luck!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sessionState cookieless and forms cookieless ravisingh11@gmail.com ASP .Net 2 05-09-2006 11:26 PM
Cookieless Session Link, Cause of Session State Problem? fizbang@gmail.com ASP .Net 1 01-19-2006 03:53 PM
Cookieless session, but session ID as a query string Hope Paka ASP .Net 0 06-07-2005 06:25 PM
Session contents lost despite Session.Timeout = 3000; and <sessionState mode="InProc" cookieless="false" timeout="300"> Carpe Diem ASP .Net 3 02-23-2004 07:10 PM
Cookieless Session and SearchEngines (Google, etc.) Jan Wurl ASP .Net 0 07-04-2003 05:44 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57