django1/django/contrib
Luke Plant 45c7f427ce Fixed #14445 - Use HMAC and constant-time comparison functions where needed.
All adhoc MAC applications have been updated to use HMAC, using SHA1 to
generate unique keys for each application based on the SECRET_KEY, which is
common practice for this situation. In all cases, backwards compatibility
with existing hashes has been maintained, aiming to phase this out as per
the normal deprecation process. In this way, under most normal
circumstances the old hashes will have expired (e.g. by session expiration
etc.) before they become invalid.

In the case of the messages framework and the cookie backend, which was
already using HMAC, there is the possibility of a backwards incompatibility
if the SECRET_KEY is shorter than the default 50 bytes, but the low
likelihood and low impact meant compatibility code was not worth it.

All known instances where tokens/hashes were compared using simple string
equality, which could potentially open timing based attacks, have also been
fixed using a constant-time comparison function.

There are no known practical attacks against the existing implementations,
so these security improvements will not be backported.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14218 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-14 20:54:30 +00:00
..
admin Fixed reference to removed function root() in AdminSite docstring. 2010-10-14 01:24:20 +00:00
admindocs Fixed #12991 -- Added unittest2 support. Thanks to PaulM for the draft patch, and to Luke, Karen, Justin, Alex, Łukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch. 2010-10-11 12:55:17 +00:00
auth Fixed #14445 - Use HMAC and constant-time comparison functions where needed. 2010-10-14 20:54:30 +00:00
comments Fixed #14445 - Use HMAC and constant-time comparison functions where needed. 2010-10-14 20:54:30 +00:00
contenttypes Fixed #14414 -- Improved contenttypes shortcut() view to check that the ContentType has a model_class(). Thanks, subsume 2010-10-06 22:55:06 +00:00
csrf Fixed #14436 -- Escalated 1.2 PendingDeprecationWarnings to DeprecationWarnings, and removed 1.1 deprecated code. 2010-10-11 12:20:07 +00:00
databrowse Fixed #12650 -- Don't generate invalid XHTML in the admin, databrowse apps when 2010-10-10 01:57:56 +00:00
flatpages Don't mark a TemplateSyntaxError in flatpages as being translatable. 2010-10-10 17:54:20 +00:00
formtools Fixed #14445 - Use HMAC and constant-time comparison functions where needed. 2010-10-14 20:54:30 +00:00
gis Enabled area calculations for geography columns. 2010-10-12 17:13:27 +00:00
humanize Fixed #11783 -- ordinal template tag now catches TypeError. Thanks, realpolitik and punteney 2010-01-10 21:37:20 +00:00
localflavor Fixed #13830 -- Updated province name in Indonesian localflavor. Thanks, rodin. 2010-10-13 01:23:07 +00:00
markup Fixed #12991 -- Added unittest2 support. Thanks to PaulM for the draft patch, and to Luke, Karen, Justin, Alex, Łukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch. 2010-10-11 12:55:17 +00:00
messages Fixed #14445 - Use HMAC and constant-time comparison functions where needed. 2010-10-14 20:54:30 +00:00
redirects Cleaned up a bunch of minor doc stuff: 2008-09-02 16:42:13 +00:00
sessions Fixed #14445 - Use HMAC and constant-time comparison functions where needed. 2010-10-14 20:54:30 +00:00
sitemaps Fixed #14447 -- Modified the auth and sitemaps tests to remove some assumptions about the environment in which the tests are run. Thanks to Gabriel Hurley for the report and patch. 2010-10-12 07:15:47 +00:00
sites Fixed #14386, #8960, #10235, #10909, #10608, #13845, #14377 - standardize Site/RequestSite usage in various places. 2010-10-04 14:20:47 +00:00
syndication Fixed #14436 -- Escalated 1.2 PendingDeprecationWarnings to DeprecationWarnings, and removed 1.1 deprecated code. 2010-10-11 12:20:07 +00:00
webdesign Converted contrib/webdesign doctests to unittests. We thoroughly deplore those doctests. 2010-10-10 01:06:56 +00:00
__init__.py Created django.contrib and moved comments into it 2005-07-14 18:20:03 +00:00