-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Description
Hello,
In documentation it is written that the data in the cookie is only signed, but not encrypted. I understand that it is signed because the cookie id is an hash of the cookie data, and attempting to alter only the data will fail...
But since there is no (external) signing key, what would prevent someone to forge a cookie with any data for a website ?
If I understand correctly (and maybe I don't), that would be a severe security issue ?!
Would it be possible to pass a server known only key to the CookieStore::new(a_secret_key)
to sign all the cookies (and deactivate them all if the key is changed) ?
Thanks,
Metadata
Metadata
Assignees
Labels
No labels