Reentrancy Attack

Attack

A reentrancy attack is a critical vulnerability in smart contracts where an external call to another contract allows the attacker to repeatedly execute code before the initial contract’s state is updated. This exploit enables the attacker to drain funds from the vulnerable contract by recursively calling the withdrawal function. The most famous example of this attack was the DAO hack in 2016.