Skip to content
OpenAdvisories

Package · crates.io

hyper-staticfile

2 known vulnerabilities.

2 results · Feed

  • Medium —

    hyper-staticfile's location header incorporates user input, allowing open redirect

    When `hyper-staticfile` performs a redirect for a directory request (e.g. a request for `/dir` that redirects to `/dir/`), the `Location` header value was derived from user input (the request path), simply appending a slash. The intent was to perform an origi…

  • Medium —

    hyper-staticfile's improper validation of Windows paths could lead to directory traversal attack

    Path resolution in `hyper-staticfile` didn't correctly validate Windows paths, meaning paths like `/foo/bar/c:/windows/web/screen/img101.png` would be allowed and respond with the contents of `c:/windows/web/screen/img101.png`. Thus users could potentially re…