#20869: Prevent repetitive output to counter BREACH-type attacks
-----------------------------+---------------------------------------------
     Reporter:  patrys       |                    Owner:  shaib
         Type:  New feature  |                   Status:  closed
    Component:  CSRF         |                  Version:  master
     Severity:  Normal       |               Resolution:  fixed
     Keywords:               |             Triage Stage:  Ready for checkin
    Has patch:  1            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |                    UI/UX:  0
-----------------------------+---------------------------------------------
Changes (by Shai Berger <shai@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"5112e65ef2df1dbb95ff83026b6a962fb2688661" 5112e65e]:
 {{{
 #!CommitTicketReference repository=""
 revision="5112e65ef2df1dbb95ff83026b6a962fb2688661"
 Fixed #20869 -- made CSRF tokens change every request by salt-encrypting
 them

 Note that the cookie is not changed every request, just the token
 retrieved
 by the `get_token()` method (used also by the `{% csrf_token %}` tag).

 While at it, made token validation strict: Where, before, any length was
 accepted and non-ASCII chars were ignored, we now treat anything other
 than
 `[A-Za-z0-9]{64}` as invalid (except for 32-char tokens, which, for
 backwards-compatibility, are accepted and replaced by 64-char ones).

 Thanks Trac user patrys for reporting, github user adambrenecki
 for initial patch, Tim Graham for help, and Curtis Maloney,
 Collin Anderson, Florian Apolloner, Markus Holtermann & Jon Dufresne
 for reviews.
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/20869#comment:41>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.0143e85ff59da281c578ab77947891c4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to