SECURITY: fix IP leak to unverified email
CVE-2025-6593 Bug: T396230 Bug: T31856 Change-Id: Ibc13fafa0a00b3dc41b097bd7aa77c6a28767a57
This commit is contained in:
parent
4b59ce1f25
commit
8a9ef65437
1 changed files with 2 additions and 2 deletions
|
|
@ -1950,9 +1950,9 @@ class User implements Stringable, Authority, UserIdentity, UserEmailContact {
|
|||
|
||||
$emailAuthentication = $config->get( MainConfigNames::EmailAuthentication );
|
||||
|
||||
if ( $emailAuthentication && $type === 'changed' ) {
|
||||
if ( $emailAuthentication && $type === 'changed' && $this->isEmailConfirmed() ) {
|
||||
// Send the user an email notifying the user of the change in registered
|
||||
// email address on their previous email address
|
||||
// email address on their previous verified email address
|
||||
$change = $str != '' ? 'changed' : 'removed';
|
||||
$notificationResult = $this->sendMail(
|
||||
wfMessage( 'notificationemail_subject_' . $change )->text(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue