Challenge introduced in my "7 phases of smart contract security" talk at DEF CON 28 in the Blockchain Village
This challenge involves governance and flash loans. What could go wrong, right ?
You must steal all tokens from the Pool
contract.
- Clone this repository
- Install dependencies with
npm install
- Code your solution in the provided
test/exploit.js
file - Run with
npm run challenge
- You must use the
attacker
account. That is, all your transactions should include{ from: attacker }
. - Solve the challenge by coding your script in the highlighted
it
block of thetest/exploit.js
file. - Do not not modify anything else. The script already takes care of setting up the scenario and checking success conditions.
- If you need to use an attacker contract, add it in the
contracts
folder.
Related documentation you might find useful:
Created and maintained by @tinchoabbate
All Solidity code, practices and patterns in this repository are vulnerable and for educational purposes only.
DO NOT COPY. DO NOT USE IN PRODUCTION.