dongmei2956 2011-03-26 11:38
浏览 23

确保会话ID

I have built my first login system. The user enters a username and password and they are given a session id with their username and id.

This username and id is then used to customize the pages they see.

Every users username and id are basically public information, but the session id is only made by the system when they login.

QUESTION:

What are the security risks of using session id here where the contents are basically public but to get the session id you have to login?

Can someone fake the session id from the public id and username of someone else since that is all a session id contains here? is this easy to do?

Are their any common things to make it safer?

  • 写回答

2条回答 默认 最新

  • drn9573 2011-03-26 11:43
    关注

    Php's own session function is very good, the session's information isn't stored with the user but on the server, and the session id is kind of like a password.

    If you want to know about the security with sessions i highly recomend this video of a speaker at defcon 18.

    Basically the session is safe enough, but if you know enough about the server and user you could hack it, but it's a long and hard process to get through and most systems doesnt give you information enough to hack the session.

    评论

报告相同问题?

悬赏问题

  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP