News for hackers. Stuff that matters.
Re:Ask HN: What kinds of cookies are “required” for a websit... by mgliwka on Thursday April 08, 2021 @04:36AM (#26736441)
To implement the synchronizer token pattern you usually store the randomly generated CSRF token in the session to validate it on the subsequent request, even if you generate a new one for each form.

You could also handle this stateless without the session using encryption or HMAC, but then you need to manage secret keys and not screw up.

https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Re...

There are no comments on this comment yet.