Hanko before 3.2.0 contains an open redirect vulnerability in Saml.IsAllowedRedirect that allows unauthenticated attackers to bypass the redirect allowlist by appending attacker-controlled domain suffixes to allowed hostnames. Attackers can lure victims through a crafted /saml/auth login link to capture the one-time hanko_token and redeem it without PKCE to hijack the victim's session.
https://github.com/teamhanko/hanko/security/advisories/GHSA-jfqc-fr2q-fvx6
https://github.com/teamhanko/hanko/releases/tag/backend/v3.2.0
https://github.com/teamhanko/hanko/commit/c34e9163df0aa15b6a9cc3a70ff9be01419199b2
https://github.com/teamhanko/hanko/blob/backend/v3.1.2/backend/config/config_saml.go