Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix path traversal vulnerability #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

carpusredden
Copy link

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