fix(deps): update rust crate warp to v0.3.3 [security] #1031
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.3.1
->0.3.3
Warp vulnerable to Path Traversal via Improper validation of Windows paths
GHSA-8v4j-7jgf-5rg9 / RUSTSEC-2022-0082
More information
Details
Path resolution in
warp::filters::fs::dir
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 ofc:/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.
Severity
High
References
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Improper validation of Windows paths could lead to directory traversal attack
GHSA-8v4j-7jgf-5rg9 / RUSTSEC-2022-0082
More information
Details
Path resolution in
warp::filters::fs::dir
didn't correctly validate Windows pathsmeaning paths like
/foo/bar/c:/windows/web/screen/img101.png
would be allowedand respond with the contents of
c:/windows/web/screen/img101.png
. Thus userscould potentially read files anywhere on the filesystem.
This only impacts Windows. Linux and other unix likes are not impacted by this.
Severity
Unknown
References
This data is provided by OSV and the Rust Advisory Database (CC0 1.0).
Release Notes
seanmonstar/warp (warp)
v0.3.3
Compare Source
fs
filters path sanitization to reject colons on Windows.v0.3.2
Compare Source
Filter::then()
, which is likeFilter::map()
in that it's infallible, but is async likeFilter::and_then()
.redirect::found()
reply helper that returns302 Found
.compression-brotli
andcompression-gzip
cargo features to enable only the compression you need.HEAD
requests to be served tofs::dir()
filters.path!()
with no arguments.futures
withfutures-util
, which is a smaller dependency.Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.