angler-fishThe Vulnerability History Project

[1.5.x] Ensure that passwords are never long enough for a DoS.

      * Limit the password length to 4096 bytes
  * Password hashers will raise a ValueError
  * django.contrib.auth forms will fail validation
 * Document in release notes that this is a backwards incompatible change

Thanks to Josh Wright for the report, and Donald Stufft for the patch.

This is a security fix; disclosure to follow shortly.

Backport of aae5a96d5754ad34e48b7f673ef2411a3bbc1015 from master.
    
commit 22b74fa09d7ccbc8c52270d648a0da7f3f0fa2bc
+13 -35
+1 -28
+1 -71
expand_less