How can I protect my users from session hijacking?

How to protect my users from session hijacking?

+3
source share
4 answers

There are three sections in Owasp Top 10 for 2010 that you should read.

1: ( !! ) A3: "Broken authentication and session management." ( !! )

2: "Cross-Site Request Subroutine" (XSRF)

3: Cross Site Scripting (XSS)

+3
source

, , - IP- . , IP- IP-, . , , -, IP-.

+1

Consider using a secret salt known only to the client and server installed at login (I hope you are logging in to SSL). Subsequently, the server can provide an account with each response, and the client can provide a hash (account + secret salt) with the following request. A potential hijacker does not have access to the secret salt and cannot generate the next hash. Even non-SSL login can probably set a secret salt if login is performed using one-time hashed passwords.

0
source

Source: https://habr.com/ru/post/1741339/


All Articles