Skip to content

Warp vulnerable to Path Traversal via Improper validation of Windows paths

High severity GitHub Reviewed Published Jan 31, 2023 to the GitHub Advisory Database • Updated Mar 31, 2023

Package

cargo warp (Rust)

Affected versions

< 0.3.3

Patched versions

0.3.3

Description

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.

References

Published to the GitHub Advisory Database Jan 31, 2023
Reviewed Jan 31, 2023
Last updated Mar 31, 2023

Severity

High

Weaknesses

CVE ID

No known CVE

GHSA ID

GHSA-8v4j-7jgf-5rg9

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.