Why not to reuse “ASP.NET_SessionId”?

江枫思渺然 提交于 2019-12-06 14:24:56

If you don't delete it and you are using http then it's a security risk

e.g.

  1. Go to www.dodgyhacker.com, they have an invisible iframe which contains the login page for www.yoursite.com. They can see the cookie and send it to a remote server
  2. Now navigate to www.yoursite.com, the cookie isn't changed and you log on
  3. The dodgy hacker can now use your session cookie and get full access to the system

In reality there are others ways of protecting against this and I'm not a hacker so this may be slightly wrong but those are the essential steps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!