Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Client side js is not particularly relevant to csrf.




I mostly agree, but that's the logic OWASP uses to argue you should still be doing explicit tokens even if you're using SameSite and Sec-Fetch.

But that's not what owasp argues. Fetch Metadata is recommended as a primary, standalone defense against CSRF (you can be forgiven for not knowing this - I worked on getting the doc updated and it landed a couple weeks ago, then was reverted erroneously, and fixed yesterday)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: