Use baseurl.Parse to construct the HTTPS redirect URL in the trust center HTTP handler, breaking the taint chain from raw request headers. Apply path.Clean to the slug-based redirect in stripTrustPrefix to normalize path traversal sequences. Addresses CodeQL go/unvalidated-url-redirection (CWE-601). Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
6.6 KiB
6.6 KiB