What Is a Reentrancy Attack in Smart Contract Security?

A reentrancy attack occurs when a malicious contract repeatedly calls a function in a vulnerable contract before the first function call has completed its state update. This allows the attacker to drain funds by continuously withdrawing assets before the contract's balance is correctly debited.

It is a critical security flaw often mitigated by using the Checks-Effects-Interactions pattern.

What Is a ‘Reentrancy Attack’ and How Does It Exploit Smart Contract Logic?
How Does a Reentrancy Attack Relate to the DAO Hack?
What Is a “Reentrancy Attack” in Smart Contract Security?
What Is a “Re-Entrancy Attack” in Smart Contracts?
What Is a “Re-Entrancy Attack” and Why Is It a Common Smart Contract Vulnerability?
What Is a ‘Reentrancy Attack’?
What Are the Differences between Single-Function and Cross-Function Reentrancy Attacks?
Why Are Fallback Functions Critical in a Reentrancy Scenario?

Glossar