Honest depositor funds Attacker's own deposit Recursive call stack Guard / lock active
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Web3 Reentrancy Attack

Reentrancy is one of the most damaging classes of smart-contract vulnerability: an attacker's fallback function calls back into a contract before its own bookkeeping has caught up, letting it withdraw far more than it deposited. This simulation renders a vault contract, its honest depositors, and an attacker whose recursive calls stack visibly higher with every re-entry, draining the vault one call at a time. Flip on a mutex-style reentrancy guard or reorder the contract to follow Checks-Effects-Interactions and watch the exact same attack fail after a single, legitimate withdrawal.