Back to course

Re-entrancy Attacks in Rust

Rust for Systems & Web3 Security

Prevention by Design

Re-entrancy happens when a contract calls an external entity before updating its own state. Rust's ownership and borrowing rules actually make re-entrancy much harder to commit than in Solidity, but it's still possible in cross-contract calls.