Fix: CVE-2026-39912 - Magic link token leak in loginWithMailLink (#873)

The loginWithMailLink endpoint returns the magic login link in the
HTTP response body, allowing unauthenticated account takeover.

The fix returns true instead of the link. The email delivery is
the authentication factor.

Bug inherited from V2Board commit 9b707aaf (2022-06-27).
This commit is contained in:
Valentin Lobstein 2026-04-09 20:44:20 +02:00 committed by GitHub
parent 9c03a344f9
commit cf5cece77f

View File

@ -46,7 +46,7 @@ class MailLinkService
$this->sendMailLinkEmail($user, $link);
return [true, $link];
return [true, true];
}
/**