Isaac Almanza(ialmanza.eth) pfp
Isaac Almanza(ialmanza.eth)
@ialmanza.eth
A reentrancy attack happens because the EVM doesn't allow concurrency. This means that two contracts involved in a message call cannot run simultaneously. An external call pauses the calling contract's execution and memory until the call returns, then execution proceeds normally
0 reply
0 recast
1 reaction

@
0 reply
0 recast
0 reaction

Isaac Almanza(ialmanza.eth) pfp
Isaac Almanza(ialmanza.eth)
@ialmanza.eth
Yes, I think the best explanation: a smart contract can run a task at the time. The vulnerability happens when an Attacker contract calls a Victim contract creating a loop allowing to drain the funds in the smart contract
0 reply
1 recast
0 reaction