News for hackers. Stuff that matters.
Re:Security advisory: Breach and Django by e12e on Wednesday August 07, 2013 @01:56AM (#6171127)
Looking at https://github.com/django/django/blob/ffcf24c9ce781a7c194ed8... I'm a little confused about how the csrf-token is generally used in Django -- but if I understand the code correctly, it looks for a cookie with the csrf_token, and compares that to a POSTed value (or x-header in case of an Ajax request).

If the system has a decent random-implementation there is no secret involved, just a (pseudo)random string -- essentially a csrf cookie is given the client on one request, and compared on the next request(s).

Is there any reason one couldn't simply use the rotate_token()-function on every (n) request(s)?

There are no comments on this comment yet.