Skip to content

Part three of my Solidity and smart contracts learning journey, solving challenges !

License

Notifications You must be signed in to change notification settings

0237h/damn-vulnerable-defi

 
 

Repository files navigation

damn-vulnerable-defi

Part three of my Solidity and smart contracts learning journey, solving challenges !

Previously...

Taking up the Ethernaut and Capture the Ether challenges tought me a lot about smart contracts security and Solidity/EVM tricks. It took me around a week to finish each one. However, I expect these challs to be a bit more demanding in terms of blockchain, EVM and DeFi protocol knowledge.

Why ?

The increase in difficulty comes with the added benefit of interacting with less common or more subtle vulnerabilities which is great for being more efficient during security audits of smart contracts. The more you encounter, the more you're being aware and pay attention to certain patterns that could indicate severe flaws in the code.

Also certain challs requires you to be familiar and learn about some widely used protocols such as Uniswap, flash loans, NFTs, etc...

What ?

All solutions can be found in the test folder, inside the Exploit test function and in the contracts/attacker-contracts folder. Took me around 5 full days to solve them all and learned quite a lot during this time about Uniswap, Flash loans, Gnosis safes, etc.

Next ?

Start reading smart contracts audits and figure out the vulnerabilities by myself. Get more familiar with hardhat and start to fork mainnet/testnet for replaying vulnerabilites.


Forked original README.md

A set of challenges to learn offensive security of smart contracts in Ethereum.

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

Play

Visit damnvulnerabledefi.xyz

Disclaimer

All Solidity code, practices and patterns in this repository are DAMN VULNERABLE and for educational purposes only.

DO NOT USE IN PRODUCTION.

About

Part three of my Solidity and smart contracts learning journey, solving challenges !

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Solidity 61.3%
  • JavaScript 37.9%
  • Python 0.8%