Session spoofing (PHP)

后端 未结 4 1177
不知归路
不知归路 2021-01-11 21:14

I am coding a website in PHP that contains the boolean $_SESSION[\'logged_in\']. This is set to true when a username and password match are present

4条回答
  •  甜味超标
    2021-01-11 22:06

    The most common problem encountered in the domain of sessions is Session Hijacking. This is due to the fact that sessions are associated with a session-parameter. This parameter needs to be supplied by the user everytime when he sends a Request to the server. As you can imagine if someone is able to guess or retrieve the parameter, they should they can 'hijack' the session.

    Edit: For security measures against it take a look at the post of Eugen Reck.

提交回复
热议问题