Expected Findings
- `next` parameter is used as the Location header without host validation.
- Protocol-relative URLs are accepted.
- Marketing email templates use the same parameter, exposing real users.
The post-login redirect honors the `next` parameter without validating its host, making any attacker URL look like a legitimate landing page.
w.Header().Set("Location", r.URL.Query().Get("next"))