Skip to content

← Public intelligence

crates.io package

hyper-staticfile

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

2 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Unratedcrates.ioPublished

    hyper-staticfile's location header incorporates user input, allowing open redirect

    GHSA-5wvv-q5fv-2388

    Affected
    • crates.io hyper-staticfile < 0.9.4; >= 0.10.0-alpha.1, < 0.10.0-alpha.5
    Fixed in
    0.9.40.10.0-alpha.5· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 0.10.0-alpha.5 (pre-release) or 0.9.4 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  2. Unratedcrates.ioPublished

    hyper-staticfile's improper validation of Windows paths could lead to directory traversal attack

    GHSA-7p7c-pvvx-2vx3

    Affected
    • crates.io hyper-staticfile < 0.9.2; >= 0.10.0-alpha.1, <= 0.10.0-alpha.1
    Fixed in
    0.10.0-alpha.20.9.2· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 0.10.0-alpha.2 (pre-release) or 0.9.2 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →