Skip to main content

What Is a “Re-Entrancy Attack” and How Does It Relate to Flash Loans?

A re-entrancy attack occurs when a contract function calls an external contract, and the external contract recursively calls back into the original function before it has finished executing its state changes. While not always directly linked, a flash loan can be used to supply the capital needed to trigger a re-entrancy vulnerability, especially if the vulnerability involves a withdrawal function that can be called multiple times before the balance is updated.

What Is a “Re-Entrancy Attack” in Smart Contracts?
How Does a Flash Loan Potentially Exploit Smart Contract Vulnerabilities?
What Is the Relationship between Flash Loans and DeFi Composability?
What Is a “Re-Entrancy Attack” and Why Is It a Common Smart Contract Vulnerability?