OWASP / CheatSheetSeries

The OWASP Cheat Sheet Series was created to provide a concise collection of high value information on specific application security topics.
https://cheatsheetseries.owasp.org
Creative Commons Attribution Share Alike 4.0 International
28.29k stars 3.96k forks source link

Update: [CSRF] Mention that non-signed Double Submit Cookie tokens can be generated client & server side. #1111

Open advename opened 1 year ago

advename commented 1 year ago

What is missing or needs to be updated?

OWASP Double Submit cookie doesn’t mention whether the token should be generated server or client side. However, it does so for the Synchronizer token pattern.

This has historically created many doubts:

Using non-signed tokens, there's no difference between generating the token server or client side, since both:

How should this be resolved?

The Double Submit Cookie section should state more specifically that the token can be generated both server and client side for non-signed tokens, but only server-side for signed token, thus eliminating confusion.

mackowski commented 1 year ago

@advename good issue. Do you want to make a PR for that?

advename commented 1 year ago

I can try, but will take some time!