Reentrancy Attack Vulnerability

A Reentrancy Attack exploits a vulnerability in smart contracts where a function makes an external call to another contract before updating its own state. This allows the external contract, which could be malicious, to re-enter the original function and perform actions such as repeatedly withdrawing funds using the same state