GHSA-wwh2-r387-g5rm
medium
tower-http's improper validation of Windows paths could lead to directory traversal attack
- Severity
- medium rating by GitHub
- Published
- Last changed
Description
tower_http::services::fs::ServeDir 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 read files anywhere on the filesystem. This only impacts Windows. Linux and other unix likes are not impacted by this.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| tower-http (crates.io) | from 0.2.0 before 0.2.1, before 0.1.3 | GitHub Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-wwh2-r387-g5rm changed 2023-06-13 | CC-BY-4.0 |