What Is Reentrancy and Why Is It a Critical Smart Contract Vulnerability?
Reentrancy is a vulnerability where an external malicious contract can repeatedly call a function in the vulnerable contract before the first execution is complete. This allows the attacker to drain funds, such as collateral, by repeatedly withdrawing before the contract updates its balance.
It was famously exploited in the DAO hack.