Delegatecall Attack Vector

Vector

The delegatecall attack vector is a critical vulnerability in smart contract programming, particularly prevalent in upgradeable proxy patterns within decentralized finance and crypto derivatives. This vector arises when a contract uses the delegatecall opcode to execute code from another contract, but the calling contract’s storage context is inadvertently exposed or manipulated by the delegated logic. It can lead to unintended state changes or unauthorized control.