... L into a link, they could suffer from an XSS attack. CVE-2016-2513: User enumeration through timing difference on password hasher work factor upgrade In each major version of Django since 1.6, the default number of iterations for the PBKDF2PasswordHash ... with a password encoded in an older number of iterations and login request for a nonexistent user (which runs the default hasher's default number of iterations since Django 1.6). This only affects users who haven't logged in since the iterations were ... ncrease, their password is updated with the new iterations and there is no longer a timing difference. The new BasePasswordHasher.harden_runtime() method allows hashers to bridge the runtime gap between the work factor (e.g. iterations) supplied in exi ... ... L into a link, they could suffer from an XSS attack. CVE-2016-2513: User enumeration through timing difference on password hasher work factor upgrade In each major version of Django since 1.6, the default number of iterations for the PBKDF2PasswordHash ... with a password encoded in an older number of iterations and login request for a nonexistent user (which runs the default hasher's default number of iterations since Django 1.6). This only affects users who haven't logged in since the iterations were ... ncrease, their password is updated with the new iterations and there is no longer a timing difference. The new BasePasswordHasher.harden_runtime() method allows hashers to bridge the runtime gap between the work factor (e.g. iterations) supplied in exi ... ... t users shouldn't need to do this -- if you're not sure, you probably don't. If you do, please read on: Django は PASSWORD_HASHERS 設定を参照して、使用するアルゴリズムを選択します。これは、この Django インストールがサポートしているハッシュアルゴリズムク ... ラスのリストです。 パスワードの保存には、 Django は PASSWORD_HASHERS の最初のハッシャーを使います。別のアルゴリズムで新しいパスワードを保存するには、 PASSWORD_HASHERS にあなたの好きなアルゴリ ... jango は保存されたパスワードのアルゴリズム名と一致するハッ シャーをリストの中から探します。保存されたパスワードが PASSWORD_HASHERS にないアルゴリズ ム名を持つ場合、それを検証しようとすると ValueError が発生します。 デフォルトでの PASSWORD_HASHERS PASSW ... ... ield now deduplicates submitted values to address this issue. バグ修正 The default iteration count for the PBKDF2 password hasher has been increased by 25%. This part of the normal major release process was inadvertently omitted in 1.7. This backwards ... compatible change will not affect users who have subclassed django.contrib.auth.hashers.PBKDF2PasswordHasher to change the default value. Fixed a crash in the CSRF middleware when handling non-ASCII referer he ... ... pstream support for PostgreSQL 9.3 is September 2018. Django 2.1 supports PostgreSQL 9.4 and higher. Removed BCryptPasswordHasher from the default PASSWORD_HASHERS setting If you used bcrypt with Django 1.4 or 1.5 (before BCryptSHA256PasswordHasher was ... added in Django 1.6), you might have some passwords that use the BCryptPasswordHasher hasher. You can check if that's the case like this: from django.contrib.auth import get_user_model User = get_user_model ( ... _startswith = "bcrypt$$" ) If you want to continue to allow those passwords to be used, you'll have to define the PASSWORD_HASHERS setting (if you don't already) and include 'django.contrib.auth.hashers.BCryptPasswordHasher' . Moved wrap_label widget t ... ... 2, however, it's not the default as it requires a third-party library. The default iteration count for the PBKDF2 password hasher has been increased by 25%. This backwards compatible change will not affect users who have subclassed django.contrib.auth. ... hashers.PBKDF2PasswordHasher to change the default value. The django.contrib.auth.views.logout() view sends "no-cache" headers to prevent an issue wher ... ) . For consistency with other model fields which don't have a similar check, this check is removed. デフォルトの PASSWORD_HASHERS 設定からの脆弱なパスワードハッシュ生成器の削除 Django 0.90 はパスワードを salt なしの MD5 で保存していましたが、Django 0. ... ... t_name_unique" , ), ] Functional unique constraints are added to models using the Meta.constraints option. scrypt password hasher The new scrypt password hasher is more secure and recommended over PBKDF2. However, it's not the default as it requires Op ... ... d library offers the strongest guarantee of backwards-compatibility. They recommend to use it from now on. String types of hasher method parameters If you have written a custom password hasher , your encode() , verify() or safe_summary() methods should ... ... ュに対するデフォルトのイテレーション回数が 216,000 から 260,000 に増加しました。 The default variant for the Argon2 password hasher is changed to Argon2id. memory_cost and parallelism are increased to 102,400 and 8 respectively to match the argon2-cffi d ... s still rather conservative but can lead to problems in memory constrained environments. If this is the case, the existing hasher can be subclassed to override the defaults. The default salt entropy for the Argon2, MD5, PBKDF2, SHA-1 password hashers i ... ... mmit ). Advance the deprecation warnings ( example commit ). Increase the default PBKDF2 iterations in django.contrib.auth.hashers.PBKDF2PasswordHasher by about 20% (pick a round number). Run the tests, and update the 3 failing hasher tests with the ne ... 2026年10月08日