Solutions to https://ethernaut.openzeppelin.com/ with Explanations and References
watch insecure randomness
- Ethernaut #3 (coinflip)
- Capture the Ether Guess the random number
- Ethernaut #11 Elevator
- Ethernaut #21 Shop (NOTE: Ethernaut expects the public variable price to be less than 100 after the puzzle is solved)
- Capture the Ether Guess the secret number
- Capture the Ether Guess the new number
- Capture the Ether predict the future
read: reentrancy
- Ethernaut #10 Re-entrancy
- RareSkills Riddles: ERC1155
- Capture the Ether Token Bank (this is challenging)
- Capture the Ether Predict the block hash (this is challenging)
Read here for a hint: https://docs.soliditylang.org/en/v0.4.24/units-and-global-variables.html#block-and-transaction-properties
Note: You can use what you learned from the fuzzing week to solve these
- Ethernaut #5 Token
- Capture the Ether Token Whale Challenge
- Capture the Ether Token Sale (this one is more challenging)
watch selfdestruct
read dangers of mixed accounting
- Ethernaut #7 Force
- Capture the Ether Retirement fund
- Damn Vulnerable Defi #4 Side Entrance
- Damn Vulnerable Defi #1 Unstoppable (this is challenging)
- RareSkills Riddles: Forwarder
- RareSkills Riddles: Assign Votes
- Ethernaut #15 Naught Coin
- Damn Vulnerable Defi #3 Truster (this is challenging)
- RareSkills Riddles: Overmint3
- RareSkills Riddles: Democracy
- RareSkills Riddles: Delete user (this is challenging)
- RareSkills Riddles: Viceroy (this is a lot more challenging compare to earlier CTFs)
- Ethernaut #9 King
- Ethernaut #20 Denial
- Ethernaut #23 Dex2
- Ethernaut #17
- Damn Vulnerable DeFi #2 Naive Receiver
Watch: private variables
- Ethernaut #8 Vault
- RareSkills Riddles: RewardToken
- RareSkills Riddles: Simple flash loan (this is very time consuming)
- RareSkills Riddles: Read-only reentrancy
- Prerequisite: ERC20Snapshot
- Damn Vulnerable DeFi #5
- Damn Vulnerable DeFi #6