CSRF Protection without Tokens or Hidden Form Fields
blog.miguelgrinberg.com·6d·
Discuss: Hacker News
Static Sites
Preview
Report Post

A couple of months ago, I received a request from a random Internet user to add CSRF protection to my little web framework Microdot, and I thought it was a fantastic idea.

When I set off to do this work in early November I expected I was going to have to deal with anti-CSRF tokens, double-submit cookies and hidden form fields, pretty much the traditional elements that we have used to build a defense against CSRF for years. And I did start along this tedious route. But then I bumped into a new way some people are dealing with CSRF attacks that is way simpler, which I describe below.

Implementing a security feature

An oft…

Similar Posts

Loading similar posts...