Unsafe Delegatecall (part 2) | Hack Solidity (0.6)
Channel: Smart Contract Programmer
Date: 2020-07-24

What can go wrong when delegatecall is used to update storage, but the storage layout is not the same between contracts? In this video I will show you an example of a contract vulnerable to unsafe delegatecall.

#Solidity #delegatecall #hack

Code: https://solidity-by-example.org/hacks/delegatecall/

References
https://github.com/ethereumbook/ethereumbook/blob/develop/09smart-contracts-security.asciidoc
https://solidity-05.ethernaut.openzeppelin.com/

Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io

Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com