GHSA-7p7c-pvvx-2vx3
JSON

medium

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

Severity
medium rating by GitHub
Published
Last changed
Also known as
RUSTSEC-2022-0069

Description

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 read files anywhere on the filesystem.

This only impacts Windows. Linux and other unix likes are not impacted by this.

Affected

Product or packageVersionsReported by
hyper-staticfile (crates.io)before 0.9.2, from 0.10.0-alpha.1 before 0.10.0-alpha.2, from 0.0.0-0 before 0.9.2, from 0.10.0-0 before 0.10.0-alpha.2GitHub Advisory Database, RustSec Advisory Database

Classification

What each source says

GitHub Advisory Database

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 read files anywhere on the filesystem.

This only impacts Windows. Linux and other unix likes are not impacted by this.

RustSec Advisory Database

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 read files anywhere on the filesystem.

This only impacts Windows. Linux and other unix likes are not impacted by this.

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-7p7c-pvvx-2vx3 changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2022-0069 changed 2023-11-08CC0-1.0