A
A
Alex2015-04-07 16:41:21
Computer networks
Alex, 2015-04-07 16:41:21

Can I use encrypted cookies to store sessions?

There is an idea to use encrypted signed (HMAC) Cookies to store the user session on the client side. There is a security issue where an attacker, knowing the key, can create a Cookie for any user. But this problem can be circumvented if, together with the user id, a part of the user's password hash is stored in the Cookie. Thus, the maximum that an attacker can do is to hack one user.
What could be the disadvantages of this method?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
olamedia., 2015-04-07
@w999d

0_o
your id cookies are not random, but by key? this is a vulnerability, yes...
If the session data is stored, then the loss of the key is a vulnerability in itself, the rest are a consequence.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question