Skip to content
rusthacks.dev
Topic

Security

Auditing dependencies, handling hostile input and closing the gaps attackers actually use.

Flat illustration for the post “Reproducible Builds in Rust and Verifying a Binary”, composed around deploy.
SecurityGuide

Reproducible Builds in Rust and Verifying a Binary

A reproducible build produces the same bytes from the same source anywhere. See what breaks it in Rust (paths, timestamps, toolchains), how to fix each, and how to verify a binary.

14 min read
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

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.