GHSA-5WVV-Q5FV-2388
Vulnerability from github – Published: 2022-12-30 16:57 – Updated: 2022-12-30 16:57
VLAI?
Summary
hyper-staticfile's location header incorporates user input, allowing open redirect
Details
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 origin-relative redirect, but specific inputs allowed performing a scheme-relative redirect instead.
An attacker could craft a special URL that would appear to be for the correct domain, but immediately redirects to a malicious domain. Such a URL can benefit phishing attacks, for example an innocent looking link in an email.
{
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "hyper-staticfile"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.9.4"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "crates.io",
"name": "hyper-staticfile"
},
"ranges": [
{
"events": [
{
"introduced": "0.10.0-alpha.1"
},
{
"fixed": "0.10.0-alpha.5"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-601"
],
"github_reviewed": true,
"github_reviewed_at": "2022-12-30T16:57:28Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"details": "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 origin-relative redirect, but specific inputs allowed performing a scheme-relative redirect instead.\n\nAn attacker could craft a special URL that would appear to be for the correct domain, but immediately redirects to a malicious domain. Such a URL can benefit phishing attacks, for example an innocent looking link in an email.\n",
"id": "GHSA-5wvv-q5fv-2388",
"modified": "2022-12-30T16:57:28Z",
"published": "2022-12-30T16:57:28Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/stephank/hyper-staticfile/commit/4db4afb811c553bc3d54a01a9985b9e6dfc5a115"
},
{
"type": "WEB",
"url": "https://github.com/stephank/hyper-staticfile/commit/f12cadc6666c6f555d29725f5bc45da2103f24ea"
},
{
"type": "PACKAGE",
"url": "https://github.com/stephank/hyper-staticfile"
},
{
"type": "WEB",
"url": "https://rustsec.org/advisories/RUSTSEC-2022-0072.html"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "hyper-staticfile\u0027s location header incorporates user input, allowing open redirect"
}
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…