diff --git a/wp-login.php b/wp-login.php index 44d13a5b29..77d82b1e01 100644 --- a/wp-login.php +++ b/wp-login.php @@ -569,6 +569,9 @@ case 'rp' : if ( isset( $_COOKIE[ $rp_cookie ] ) && 0 < strpos( $_COOKIE[ $rp_cookie ], ':' ) ) { list( $rp_login, $rp_key ) = explode( ':', wp_unslash( $_COOKIE[ $rp_cookie ] ), 2 ); $user = check_password_reset_key( $rp_key, $rp_login ); + if ( isset( $_POST['pass1'] ) && ! hash_equals( $rp_key, $_POST['rp_key'] ) ) { + $user = false; + } } else { $user = false; } @@ -627,6 +630,7 @@ case 'rp' :


+