Tips on CSRF security #2538
-
I have been researched on Origin Header which I'm unsure whether I'm implementing it correctly to harden site security. As the basic
On the fontend, the endpoint get CSRF token and add it to hidden input field within the login .
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
About Origin, maybe this helps https://stackoverflow.com/questions/24680302/csrf-protection-with-cors-origin-header-vs-csrf-token |
Beta Was this translation helpful? Give feedback.
-
From my understanding if both CSRF token in HTML and cookie header has the same value, that seems attackers could easily gained hold of the new generated token through GET endpint, do you think double CSRF submit could be implement for Echo? |
Beta Was this translation helpful? Give feedback.
I have no idea on the multiple cookies, how do I store values related to data if e.g. has a title, description, other complex inputs?
Or another idea, I could reissue new CSRF token to extend 24 hours whenever user create or retrieve post?