Security mailing lists by PureSourceCode

GHSA-5wvv-q5fv-2388

MEDIUM

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.

Published
23 Dec 2022
Last modified
8 Nov 2023
Weakness
CWE-601
Also known as
RUSTSEC-2022-0072
Sources
OSVJSONOSV RUSTSEC-2022-0072JSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io hyper-staticfile < 0.9.4 0.9.4
OSV crates.io hyper-staticfile >= 0.10.0-alpha.1, < 0.10.0-alpha.5 0.10.0-alpha.5
OSV crates.io hyper-staticfile >= 0.0.0-0, < 0.9.4; >= 0.10.0-0, < 0.10.0-alpha.5 0.9.4, 0.10.0-alpha.5

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Dec 2022)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 30 Dec 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.