Tips on CSRF security #2538
Answered
by
jamesli2021
jamesli2021
asked this question in
Q&A
|
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 .
|
Answered by
jamesli2021
Oct 31, 2023
Replies: 2 comments 7 replies
|
About Origin, maybe this helps https://stackoverflow.com/questions/24680302/csrf-protection-with-cors-origin-header-vs-csrf-token |
0 replies
|
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? |
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?