Denial of Service | Hack Solidity (0.6)
Channel: Smart Contract Programmer
Date: 2020-08-08

Many Solidity smart contracts allows the caller to withdraw Ether instead of having the smart contract send Ether to the caller. This is called Push vs Pull in smart contract designs. By designing your smart contract to use the pull pattern, you avoid a denial of service attack that is possible on contracts that push Ether. In this video I will explain how a contract that sends Ether can be vulnerable to denial of service.

#Solidity #denialOfService #DOS #hack #PushVsPull

Code: https://solidity-by-example.org/hacks/denial-of-service/

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