Damn Vulnerable DeFi V3 Naive Receiver Solution - Complete Walkthrough
Johnny Time
Welcome to our tutorial where we'll tackle the second challenge in Damn Vulnerable DeFi V3 - Naive Receiver.
Check out the challenge here: https://www.damnvulnerabledefi.xyz/challenges/naive-receiver/
Become a Certified Smart Contract Hacker: https://johnnytime.xyz/smart-contract-hacker
Damn Vulnerable DeFi V3 Videos and Solutions: https://www.youtube.com/playlist?list=PLKXasCp8iWpiKdsSR18XdAyDeYlYzMG00
Let's break it down step by step.
Picture this: a pool loaded with 1000 ETH, lending out money and charging 1 ETH per loan.
Then there's a user holding 10 ETH who can grab these loans. But, wait for it – we're not eyeing the pool, we're zooming in on the user.
Our mission? To drain those 10 ETH they've got in one transaction.
But how? Here's the trick: spot a bug in the user's contract. We'll exploit an access control vulnerability and set off 10 flash loans to funnel their ETH straight into the pool.
How does it work, you ask? Some clever code manipulation. We're diving deep into the code, so come along for a journey into the world of smart contract security. ... https://www.youtube.com/watch?v=2tFlcH5k-jk
249476907 Bytes