Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Django's overall security
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Simon Willison  
View profile  
 More options Sep 14 2005, 12:29 pm
From: Simon Willison <swilli...@gmail.com>
Date: Wed, 14 Sep 2005 17:29:52 +0100
Local: Wed, Sep 14 2005 12:29 pm
Subject: Re: Django's overall security
One thing that Django would definitely benefit from is support for  
simple protection against CSRF attacks. The admin site should have  
this turned on by default, and some kind of mechanism for easily  
applying it to custom code would be welcome as well.

CSRF attacks are described in detail here:

http://www.squarefree.com/securitytips/web-developers.html#CSRF

(Further info at the bottom of the page)

Basically, if I can trick you in to visiting a page that I control  
while you are logged in to Django's admin, and I can guess the URL of  
things within that admin, I can add/edit/delete the content on your  
site by hiding my own form targeting your admin site on my page and  
using JavaScript to get your browser to submit it.

The only guaranteed defence against this attack is to include in  
every form a hidden field containing a one-time secret that an  
attacker couldn't possibly guess. The secret "proves" that the form  
being submitted was originally served by your site, not created by an  
imposter.

I've filed a bug to track developments on this: http://
code.djangoproject.com/ticket/510

Cheers,

Simon Willison


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.