Skip to main content

Define a “Reentrancy Attack” in Smart Contracts.

A reentrancy attack occurs when an external malicious contract repeatedly calls back into the vulnerable contract before the first function call has completed its state update. This allows the attacker to drain funds by repeatedly withdrawing assets before the contract has registered the change in the attacker's balance.

It is a critical vulnerability, famously exploited in the DAO hack.

What Is a “Re-Entrancy Attack” and Why Is It a Common Smart Contract Vulnerability?
What Is a ‘Reentrancy Attack’ and How Does It Exploit Smart Contract Logic?
What Happens to My Investment If a Rebase Token’s Smart Contract Is Exploited?
What Is a Reentrancy Attack in Smart Contracts?