
Challenge Overview
Damn Vulnerable DeFi is a series of challenges that teach you about the vulnerabilities in DeFi protocols.
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
Damn Vulnerable DeFi Challenges

Level 1
Easy
Selfie
Learn how to exploit contracts that use a self-destruct function to take ownership of the contract.
Solve challenge

Level 2
Easy
Naive Receiver
Exploit a lending pool that doesn't validate the borrower properly.
Solve challenge

Level 3
Medium
Truster
Exploit a lending pool that trusts arbitrary contracts to repay loans.
Solve challenge

Level 4
Medium
Side Entrance
Exploit a lending pool that allows deposits through a side entrance.
Solve challenge

Level 5
Hard
The Rewarder
Exploit a reward system that doesn't properly validate token ownership.
Solve challenge

Level 6
Hard
Compromised
Exploit a price oracle that uses compromised private keys.
Solve challenge