RUSTSEC-2022-0069

Source
https://rustsec.org/advisories/RUSTSEC-2022-0069
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2022-0069.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2022-0069
Aliases
Published
2022-11-30T12:00:00Z
Modified
2023-11-08T04:16:54.984322Z
Summary
Improper validation of Windows paths could lead to directory traversal attack
Details

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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / hyper-staticfile

Package

Name
hyper-staticfile
View open source insights on deps.dev
Purl
pkg:cargo/hyper-staticfile

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.9.2
Introduced
0.10.0-0
Fixed
0.10.0-alpha.2

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [
            "windows"
        ],
        "functions": [],
        "arch": []
    }
}

Database specific

{
    "cvss": null,
    "informational": null,
    "categories": [
        "file-disclosure"
    ]
}