Delegatecall is a powerful low level operation in Solidity. A contract can use delegatecall to run code from another external contract while preserving the caller's context. This is extremely powerful and allows for things like upgradeable smart contracts. However, extreme caution is required since delegatecall has been the vector for numerous high profile hacks in Ethereum. The executing contract has the ability to manipulate the calling contract's state. It would be extremely unwise to use delegatecall as a catchall forwarding system in your contract. This is what allowed the attacker in the Parity Wallet hack of 2017 to overwrite the owner wallets with his own wallet address and withdraw all funds.
Subscribe to:
Post Comments (Atom)
190: Sablier
The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...
-
The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...
-
The ZKasino project recently exit scammed over 33 million dollars worth of Ethereum. he recent debacle surrounding ZKasino offers valuable...
-
In addition to its native SDK, Hedera also supports smart contracts in a platform compatible with the Ethereum Virtual Machine. This allows ...
No comments:
Post a Comment