Skip to main content

Re-Entrancy Attack

Definition

A Re-Entrancy Attack is a vulnerability in smart contracts where an external contract or malicious actor can repeatedly call back into the original contract before the first execution is complete, leading to unintended and often exploitative state changes. This allows the attacker to drain funds or manipulate contract logic by repeatedly withdrawing assets or executing functions. It arises when a contract sends funds to an external address and then makes an external call to that address before updating its own state. Preventing this requires careful sequencing of operations.