What Is a Reentrancy Attack in the Context of Smart Contract Vulnerabilities?
A reentrancy attack occurs when an external malicious contract repeatedly calls back into the vulnerable contract before the first transaction's state update is complete. This allows the attacker to drain funds multiple times.
The famous DAO hack was primarily due to a reentrancy vulnerability.