Exploits
Solidity Attack Vector #7: Reentrancy
SecurityInfinity Research•10 min read
Solidity Attack Vector #7: Reentrancy
Reentrancy occurs when an external call is made to an untrusted contract, which then calls back into the original contract to repeat an action before the first one is finished.
Fix
Always use the Checks-Effects-Interactions pattern or a ReentrancyGuard.