What is a reentrancy attack?
Published in
5 min readApr 16
--
Reentrancy attacks are a type of exploit that can be used to drain funds from smart contracts. They work by taking advantage of the fact that smart contracts can be called recursively, or called multiple times in a row.
To carry out a reentrancy attack, an attacker would first send a transaction to the target smart contract. This transaction would call a function in the smart contract that transfers funds to the…