Skip to content
rusthacks.dev

Library

Everything you need to level up your coding skills.

Flat illustration for the post “Integer Overflow Bugs in Rust Release Builds and Fixes”, composed around security.
Security

Integer Overflow Bugs in Rust Release Builds and Fixes

Integer overflow panics in debug builds and wraps in release builds by default. Learn how that becomes a vulnerability, which arithmetic to use for untrusted numbers and how to enable checks in release.

3 min read
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.