GHSA-5wvv-q5fv-2388 – hyper-staticfile
Package
Manager: cargo
Name: hyper-staticfile
Vulnerable Version: >=0 <0.9.4 || >=0.10.0-alpha.1 <0.10.0-alpha.5
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N/E:U/RL:O/RC:C
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
EPSS: N/A pctlN/A
Details
hyper-staticfile's location header incorporates user input, allowing open redirect 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.
Metadata
Created: 2022-12-30T16:57:28Z
Modified: 2022-12-30T16:57:28Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-5wvv-q5fv-2388/GHSA-5wvv-q5fv-2388.json
CWE IDs: ["CWE-601"]
Alternative ID: N/A
Finding: F156
Auto approve: 1