1
0
mirror of https://github.com/django/django.git synced 2024-12-25 10:35:48 +00:00
django/docs/releases/1.7.6.txt

31 lines
1.1 KiB
Plaintext
Raw Normal View History

2015-02-25 14:11:19 +00:00
==========================
Django 1.7.6 release notes
==========================
*March 9, 2015*
2015-02-25 14:11:19 +00:00
Django 1.7.6 fixes a security issue and several bugs in 1.7.5.
Mitigated an XSS attack via properties in ``ModelAdmin.readonly_fields``
========================================================================
The :attr:`ModelAdmin.readonly_fields
<django.contrib.admin.ModelAdmin.readonly_fields>` attribute in the Django
admin allows displaying model fields and model attributes. While the former
were correctly escaped, the latter were not. Thus untrusted content could be
injected into the admin, presenting an exploitation vector for XSS attacks.
In this vulnerability, every model attribute used in ``readonly_fields`` that
is not an actual model field (e.g. a :class:`property`) will **fail to be
escaped** even if that attribute is not marked as safe. In this release,
autoescaping is now correctly applied.
2015-02-25 14:11:19 +00:00
Bugfixes
========
2015-03-07 13:12:44 +00:00
* Fixed crash when coercing ``ManyRelatedManager`` to a string
(:ticket:`24352`).
* Fixed a bug that prevented migrations from adding a foreign key constraint
when converting an existing field to a foreign key (:ticket:`24447`).