Damn Vulnerable DeFi
Damn Vulnerable DeFi is an amazing set of problems to practice your smart contract security skills. I was able to complete 11/12 challenges on my own. I present to you my solutions with detailed explanations, as well as patched versions of the vulnerable contracts.
Spend at least a few hours hacking on the problems yourself before checking solutions. That’s what I did. If you’re still stuck (like I was on the 12th problem), take a look at the list below.
- Unstoppable
- Naive receiver
- Truster
- Side entrance
- Rewarder
- Selfie
- Compromised
- Puppet
- Puppet v2
- Free rider
- Backdoor
- Climber - I wasn’t able to solve this one on my own. Instead, here’s a link to an explanation of the exploit that helped me when I got stuck. Shoutout to Balázs Kocsis for the great explanation.
The full source code is available here
Written on June 6, 2022