#17906: 'firstof' and 'cycle'  should autoescape
---------------------------------+--------------------
     Reporter:  anonymous        |      Owner:  nobody
         Type:  Uncategorized    |     Status:  new
    Component:  Template system  |    Version:  1.3
     Severity:  Normal           |   Keywords:
 Triage Stage:  Unreviewed       |  Has patch:  0
Easy pickings:  0                |      UI/UX:  0
---------------------------------+--------------------
 'firstof' and 'cycle'  do not Autoescaping when used in a template.
 My expected behavior for Django is: The results of all template tags
 should be escaped unless marked safe.

 Related to #10912
 In the context of #10912, the current behavior is documented. I don't
 think that is enough.

 The current  behavior is NOT a good approach.  Instead of documenting such
 pitt-falls, django should be safe by default.
 When I manually inspect the usage of 'firstof' and 'cycle' in several
 projects its almost a 100% hit with XSS vulnerable code.


 Is there any reason why the current (and documented) behaviour is better
 than just fixing this ?


 ref: http://www.pythonsecurity.org/wiki/django/

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17906>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to