Skip to content

Fix path traversal vulnerability#22

Open
carpusredden wants to merge 1 commit into
miquels:masterfrom
carpusredden:fix-path-traversal
Open

Fix path traversal vulnerability#22
carpusredden wants to merge 1 commit into
miquels:masterfrom
carpusredden:fix-path-traversal

Conversation

@carpusredden

Copy link
Copy Markdown

Hello,

Thanks for this Rust WebDAV implementation.

I found a path traversal vulnerability that you should be able to reproduce by running:

cargo run --example hyper

and then:

curl 'http://127.0.0.1:4918/%2e%2e/etc/passwd'

This PR proposes a way to handle this issue. I didn't read all this crate code, this patch may no be exhaustive.

I made a PR at messense/dav-server-rs#10 too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant