codeql
codeql copied to clipboard
Partial URLs should not sanitize against SSRF
trafficstars
As an example:
urlPath := ctx.Req.URL.Path
hash := urlPath[strings.LastIndex(urlPath, "/")+1:]
req, _ := http.NewRequest("GET", source+hash, nil)