#foundry

3 articles
Security Beginner

Solve Ethernaut level 2 with Foundry. A single mistyped character turns the constructor into a public function anyone can call to take ownership.

6 min read
Security Beginner

Solve Ethernaut level 1 with Foundry. Take ownership through the receive() function and drain the contract, then see why this bug class still shows up in audits.

5 min read
Security Beginner

Solve Ethernaut level 3 with Foundry. Win ten coin flips in a row by reading the same block hash the contract reads, and learn why on-chain randomness fails.

7 min read