Untrusted Contract Recursion

Architecture

Untrusted contract recursion describes a vulnerability where a smart contract enables an external, potentially malicious contract to re-enter its functions before the initial execution completes. This mechanism leverages the state-transition dependency within blockchain environments, allowing the calling contract to manipulate internal variables or balances repeatedly. Sophisticated exploits utilize this recursive loop to bypass authorization checks or drain collateral before the protocol can finalize the state update.