Skip to content

Latest commit

 

History

History
5 lines (2 loc) · 620 Bytes

delegate_complete.md

File metadata and controls

5 lines (2 loc) · 620 Bytes

Usage of delegatecall is particularly risky and has been used as an attack vector on multiple historic hacks. With it, your contract is practically saying "here, -other contract- or -other library-, do whatever you want with my state". Delegates have complete access to your contract's state. The delegatecall function is a powerful feature, but a dangerous one, and must be used with extreme care.

Please refer to the The Parity Wallet Hack Explained article for an accurate explanation of how this idea was used to steal 30M USD.