The denial-of-service fixes from https://www.drupal.org/SA-CORE-2014-006 look like they would be relevant to Drupal 8 too and need to be ported there.

See the password.inc changes from http://cgit.drupalcode.org/drupal/commit/?id=81586d9e9d04dcee487c50de426... (and also the related tests).

Patch credit (for the Drupal 7 fix): klausi, pwolanin, Heine, tsphethean

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

David_Rothstein’s picture

Adding link to the related issue for the other half of the security advisory.

David_Rothstein’s picture

Issue summary: View changes
Berdir’s picture

Assigned: Unassigned » Berdir

Working on this.

Berdir’s picture

Assigned: Berdir » Unassigned
Status: Active » Needs review
FileSize
1.66 KB
2.88 KB

Ported the fix and the tests.

The last submitted patch, 4: password-length-2378703-4-test-only.patch, failed testing.

klausi’s picture

Status: Needs review » Needs work

Cool, almost ready!

+++ b/core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php
@@ -137,6 +137,43 @@ public function testPasswordRehashing() {
+  public function providerLongPasswords() {

Doc block missing, something like "Provides the test matrix for testLongPassword()."

Berdir’s picture

Status: Needs work » Needs review
FileSize
2.94 KB
618 bytes

Wasn't sure what to add as comment and if at all, we have a lot of undocumented data providers methods. But your suggestion works for me ;)

klausi’s picture

Status: Needs review » Reviewed & tested by the community

Thanks, looks good.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.0.x, thanks!

  • catch committed 9df8989 on 8.0.x
    Issue #2378703 by Berdir: Port denial of service fixes from SA-CORE-2014...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.