#26914: Invalid characters in cookie name breaks csrf checking
-------------------------------+--------------------------------------
Reporter: guocheng | Owner: nobody
Type: Bug | Status: closed
Component: HTTP handling | Version: 1.9
Severity: Normal | Resolution: duplicate
Keywords: csrf, cookie | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by timgraham):
* status: new => closed
* needs_better_patch: => 0
* component: CSRF => HTTP handling
* needs_tests: => 0
* needs_docs: => 0
* resolution: => duplicate
Comment:
This is fixed in Django 1.10 by 93a135d111c2569d88d65a3f4ad9e6d9ad291452
(#26158). The following assertion fails in 1.9 and passes in 1.10:
`self.assertEqual(parse_cookie('[=whatever;c= v;'), {'[': 'whatever', 'c':
'v'})`
--
Ticket URL: <https://code.djangoproject.com/ticket/26914#comment:1>
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/066.01a45b80dfb284445a110eb1027b1bca%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.