GHSA-7P7C-PVVX-2VX3
Vulnerability from github – Published: 2022-12-05 22:03 – Updated: 2022-12-05 22:03
VLAI?
Summary
hyper-staticfile's 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.
{
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "hyper-staticfile"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.9.2"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "crates.io",
"name": "hyper-staticfile"
},
"ranges": [
{
"events": [
{
"introduced": "0.10.0-alpha.1"
},
{
"fixed": "0.10.0-alpha.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.10.0-alpha.1"
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-22"
],
"github_reviewed": true,
"github_reviewed_at": "2022-12-05T22:03:46Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"details": "Path resolution in `hyper-staticfile` didn\u0027t 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.\n\nThis only impacts Windows. Linux and other unix likes are not impacted by this.\n",
"id": "GHSA-7p7c-pvvx-2vx3",
"modified": "2022-12-05T22:03:46Z",
"published": "2022-12-05T22:03:46Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/stephank/hyper-staticfile/issues/35"
},
{
"type": "WEB",
"url": "https://github.com/stephank/hyper-staticfile/pull/36"
},
{
"type": "WEB",
"url": "https://github.com/stephank/hyper-staticfile/commit/1e40e31d64bc6b32e595d24074092dcf84410b2b"
},
{
"type": "PACKAGE",
"url": "https://github.com/stephank/hyper-staticfile"
},
{
"type": "WEB",
"url": "https://rustsec.org/advisories/RUSTSEC-2022-0069.html"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "hyper-staticfile\u0027s improper validation of Windows paths could lead to directory traversal attack"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…