Security of Smart Contracts 2: Reentrancy

Reentrancy

if a contract calls attack() function with enough gas, the recipient contract will have the chance to perform its own logic.

Solution:

set Balance before sending ETH to the caller

Subscribe to Hicss
Receive the latest updates directly to your inbox.
Verification
This entry has been permanently stored onchain and signed by its creator.