neoeinstein / aliri

Web API access control for Rust
Apache License 2.0
116 stars 19 forks source link

fix(deps): update rust crate warp to 0.3.7 [security] - autoclosed #94

Closed renovate[bot] closed 6 months ago

renovate[bot] commented 6 months ago

Mend Renovate

This PR contains the following updates:

Package Type Update Change
warp dependencies patch 0.3 -> 0.3.7

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 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. #### Severity High #### References - [https://github.com/seanmonstar/warp/issues/937](https://togithub.com/seanmonstar/warp/issues/937) - [https://github.com/seanmonstar/warp/pull/997](https://togithub.com/seanmonstar/warp/pull/997) - [https://github.com/seanmonstar/warp/commit/0074a0a3e98786509259bfe3821d3b3f094257aa](https://togithub.com/seanmonstar/warp/commit/0074a0a3e98786509259bfe3821d3b3f094257aa) - [https://github.com/seanmonstar/warp](https://togithub.com/seanmonstar/warp) - [https://rustsec.org/advisories/RUSTSEC-2022-0082.html](https://rustsec.org/advisories/RUSTSEC-2022-0082.html) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-8v4j-7jgf-5rg9) and the [GitHub Advisory Database](https://togithub.com/github/advisory-database) ([CC-BY 4.0](https://togithub.com/github/advisory-database/blob/main/LICENSE.md)).

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 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. #### Severity Unknown #### References - [https://crates.io/crates/warp](https://crates.io/crates/warp) - [https://rustsec.org/advisories/RUSTSEC-2022-0082.html](https://rustsec.org/advisories/RUSTSEC-2022-0082.html) - [https://github.com/seanmonstar/warp/issues/937](https://togithub.com/seanmonstar/warp/issues/937) This data is provided by [OSV](https://osv.dev/vulnerability/RUSTSEC-2022-0082) and the [Rust Advisory Database](https://togithub.com/RustSec/advisory-db) ([CC0 1.0](https://togithub.com/rustsec/advisory-db/blob/main/LICENSE.txt)).

Release Notes

seanmonstar/warp (warp) ### [`v0.3.7`](https://togithub.com/seanmonstar/warp/blob/HEAD/CHANGELOG.md#v037-April-5-2024) [Compare Source](https://togithub.com/seanmonstar/warp/compare/v0.3.6...v0.3.7) - **Features**: - Add ecc private key support to `tls()` config. - **Fixes**: - Several dependency upgrades. ### [`v0.3.6`](https://togithub.com/seanmonstar/warp/blob/HEAD/CHANGELOG.md#v036-September-27-2023) [Compare Source](https://togithub.com/seanmonstar/warp/compare/v0.3.5...v0.3.6) - **Features**: - Add ability to pass `None` to `multipart::form().max_length()`. - Implement `Reply` for `Result`. - Make `multipart::Part::content_type()` return the full mime string. - Add `TlsServer::try_bind_with_graceful_shutdown()`. - **Fixes**: - Updated tungstenite and rustls dependencies for security fixes. ### [`v0.3.5`](https://togithub.com/seanmonstar/warp/blob/HEAD/CHANGELOG.md#v035-April-28-2023) [Compare Source](https://togithub.com/seanmonstar/warp/compare/v0.3.4...v0.3.5) - **Fixes**: - `multipart` filters now use `multer` dependency, fixing some streaming bugs. - `Rejection::into_response()` is significantly faster. ### [`v0.3.4`](https://togithub.com/seanmonstar/warp/blob/HEAD/CHANGELOG.md#v034-March-31-2023) [Compare Source](https://togithub.com/seanmonstar/warp/compare/v0.3.3...v0.3.4) - **Fixes**: - `multipart::Part` data is now streamed instead of buffered. - Update dependency used for `multipart` filters. ### [`v0.3.3`](https://togithub.com/seanmonstar/warp/blob/HEAD/CHANGELOG.md#v033-September-27-2022) [Compare Source](https://togithub.com/seanmonstar/warp/compare/v0.3.2...v0.3.3) - **Fixes**: - Fix `fs` filters path sanitization to reject colons on Windows. ### [`v0.3.2`](https://togithub.com/seanmonstar/warp/blob/HEAD/CHANGELOG.md#v032-November-9-2021) [Compare Source](https://togithub.com/seanmonstar/warp/compare/v0.3.1...v0.3.2) - **Features**: - Add `Filter::then()`, which is like `Filter::map()` in that it's infallible, but is async like `Filter::and_then()`. - Add `redirect::found()` reply helper that returns `302 Found`. - Add `compression-brotli` and `compression-gzip` cargo features to enable only the compression you need. - Allow `HEAD` requests to be served to `fs::dir()` filters. - Allow `path!()` with no arguments. - **Fixes**: - Update private dependencies Tungstenite and Multipart. - Replaces uses of `futures` with `futures-util`, which is a smaller dependency. ### [`v0.3.1`](https://togithub.com/seanmonstar/warp/blob/HEAD/CHANGELOG.md#v031-March-24-2021) [Compare Source](https://togithub.com/seanmonstar/warp/compare/v0.3.0...v0.3.1) - **Features**: - Add `pong` constructor to websocket messages. - Add `redirect::see_other` and `redirect::permanent` helpers. - **Fixes**: - Fix `fs` filters sometimes having an off-by-one error with range requests. - Fix CORS to allow spaces when checking `Access-Control-Request-Headers`.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - "after 8pm,before 6am" in timezone America/Denver.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.