[PATCH] Enable CsrfViewMiddleware -- make CSRF protection required by default - Mailing list pgsql-www

From Marti Raudsepp
Subject [PATCH] Enable CsrfViewMiddleware -- make CSRF protection required by default
Date
Msg-id CABRT9RCR=ZmFcVEoSyGRtPNPNP1W+6esp3RwXqipWGU23oJjYg@mail.gmail.com
Whole thread Raw
Responses Re: [PATCH] Enable CsrfViewMiddleware -- make CSRF protection required by default  (Magnus Hagander <magnus@hagander.net>)
List pgsql-www
Hi list,

I noticed that most of the forms on the Postgres community site don't
use CSRF protection. That's bad -- CSRF should be on by default.

I went through all the views that handle POST data and didn't find any
that should handle input from cross-domain requests. But CSRF
exceptions, if any, should be decorated with @csrf_exempt (from
django.views.decorators.csrf).

Also available from my Github repo: https://github.com/intgr/pgweb

Regards,
Marti

Attachment

pgsql-www by date:

Previous
From: Devrim GÜNDÜZ
Date:
Subject: people.planetpostgresql.org will be down for maintenance
Next
From: "Kevin Grittner"
Date:
Subject: Community profile ssh keys not making it to git