Smart Contract Reentrancy

Vulnerability

Smart contract reentrancy is a critical vulnerability where a function call to an external contract allows the external contract to call back into the original contract before the initial execution completes. This recursive call structure enables an attacker to repeatedly execute code and drain funds from the vulnerable contract. The flaw arises from a failure to update the contract’s state before interacting with external entities.