Ethernaut Challenges

Challenge Overview

Ethernaut is a Web3/Solidity based wargame inspired by overthewire.org, played in the Ethereum Virtual Machine. Each level is a smart contract that needs to be 'hacked'. The game acts both as a tool for those interested in learning Ethereum and as a way to catalogue historical hacks as levels.

What You'll Learn

  • Smart contract vulnerabilities
  • Web3 security principles
  • Solidity pitfalls
  • Real-world attack vectors

Prerequisites

  • Intermediate Solidity knowledge
  • Understanding of EVM
  • MetaMask wallet setup
  • Basic JavaScript skills

Tools Used

  • Remix IDE
  • Web3.js / Ethers.js
  • Hardhat / Foundry
  • MetaMask

Ethernaut Challenges

Fallback
Level 1

Fallback

Learn about function fallbacks and how to exploit them to take ownership of a contract.

Solve challenge
Fallout
Level 2

Fallout

Exploit a constructor naming vulnerability to claim ownership of the contract.

Solve challenge
Coin Flip
Level 3

Coin Flip

Predict the outcome of a coin flip to exploit randomness vulnerabilities in Solidity.

Solve challenge
Telephone
Level 4

Telephone

Learn the difference between tx.origin and msg.sender to claim ownership of a contract.

Solve challenge
Token
Level 5

Token

Exploit integer underflow vulnerability to gain unlimited tokens.

Solve challenge
Delegation
Level 6

Delegation

Use delegatecall to take ownership of a contract through function delegation.

Solve challenge
Force
Level 7

Force

Force ETH into a contract that has no payable functions or fallback function.

Solve challenge
Vault
Level 8

Vault

Understand storage visibility and unlock a vault by accessing private data.

Solve challenge
King
Level 9

King

Break a smart contract game by preventing others from becoming the king through a clever denial of service attack.

Solve challenge
Re-entrancy
Level 10

Re-entrancy

Exploit a classic re-entrancy vulnerability to drain all funds from a contract before its balance is updated.

Solve challenge
Elevator
Level 11

Elevator

Manipulate a building's interface implementation to make an elevator reach the top floor of a building.

Solve challenge
Privacy
Level 12

Privacy

Unlock a contract by understanding how storage works in Ethereum and accessing seemingly private data.

Solve challenge
Gatekeeper One
Level 13

Gatekeeper One

Unlock a contract by understanding how storage works in Ethereum and accessing seemingly private data.

Solve challenge
Naught Coin
Level 15

Naught Coin

Unlock a contract by understanding how storage works in Ethereum and accessing seemingly private data.

Solve challenge
Preservation
Level 16

Preservation

Unlock a contract by understanding how storage works in Ethereum and accessing seemingly private data.

Solve challenge
Recovery
Level 17

Recovery

Unlock a contract by understanding how storage works in Ethereum and accessing seemingly private data.

Solve challenge
Magic Number
Level 18

Magic Number

Unlock a contract by understanding how storage works in Ethereum and accessing seemingly private data.

Solve challenge
Alien Code X
Level 19

Alien Code X

Unlock a contract by understanding how storage works in Ethereum and accessing seemingly private data.

Solve challenge
Denial
Level 20

Denial

Unlock a contract by understanding how storage works in Ethereum and accessing seemingly private data.

Solve challenge
shop
Level 21

shop

Unlock a contract by understanding how storage works in Ethereum and accessing seemingly private data.

Solve challenge
puzzle wallet
Level 24

puzzle wallet

Unlock a contract by understanding how storage works in Ethereum and accessing seemingly private data.

Solve challenge