Closed
Description
There is an issue in hash function
https://github.com/expressjs/session/blob/master/index.js#L582
simple JSON.stringify
is not safe to use as when session contains an object with multiple properties inside (user
for example with id
, name
, position
properties). JSON.stringify can return different string (id, name, position
or position, id, name
). We need to do safe object keys sorting before serializing or use some kind of safe object hashing (e.g. https://github.com/puleos/object-hash)
Metadata
Metadata
Assignees
Labels
No labels