Damn Vulnerable DeFi

The offensive security playground for the decentralized finances

Damn Vulnerable DeFi is the wargame to learn offensive security of DeFi smart contracts in Ethereum.

Featuring flash loans, price oracles, governance, NFTs, DEXs, lending pools, smart contract wallets, timelocks, and more!

Challenges

#Name
1Unstoppable
2Naive receiver
3Truster
4Side Entrance
5The Rewarder
6Selfie
7Compromised
8Puppet
9Puppet V2
10Free Rider
11Backdoor
12Climber
13Wallet Mining
14Puppet V3
15ABI Smuggling

How to play

  1. Clone the repository
  2. Checkout the latest version with git checkout v3.0.0
  3. Install dependencies with yarn
  4. Code your solution in the *.challenge.js file (inside each challenge's folder in the test folder)
  5. Run the challenge with yarn run challenge-name. If the test is executed successfully, you've passed!

Tips