I've taken a look at the CSRF protection in middleware.py, and I can't see how it actually protects against CSRF. It doesn't seem to be matching the cookie token against the contents of the request, so how would it stop an attack?
I'm going to see if I can get an instance set up and properly test it, but if someone can explain, that would be good.
I've taken a look at the CSRF protection in middleware.py, and I can't see how it actually protects against CSRF. It doesn't seem to be matching the cookie token against the contents of the request, so how would it stop an attack?
I'm going to see if I can get an instance set up and properly test it, but if someone can explain, that would be good.