Skip to content
rusthacks.dev

Tag

path-traversal

1 post

Flat illustration for the post “Path Traversal in Rust File Servers and Safe Joins”, composed around security.
Security

Path Traversal in Rust File Servers and Safe Joins

A user-supplied filename like ../../etc/passwd escapes your upload directory. Reject components, canonicalize and verify the prefix, and see why Path::join with an absolute path is a trap.

3 min read