Expected Findings
- User-supplied filename is joined into a base path without normalization.
- `..` segments escape the upload directory.
- URL-encoded variants and double-encoding are both honored.
The download endpoint joins the `file` parameter into a base directory without normalization, letting `../` segments read arbitrary host files.
CWE-22CWE-200
os.Open(filepath.Join("/srv/uploads/", req.URL.Query().Get("file")))