Exploit Details
- VectorFlash Loan Reentrancy
- Value Lost~$12.5M USD
- Target ChainEthereum Mainnet
- StatusPatched
account_tree The Architectural Breakdown
The vulnerability stemmed from a logic error in the protocol's state update mechanism. Instead of updating the `userBalance` before transferring out the underlying assets, the contract performed an external call to an untrusted contract, allowing the attacker to re-enter the withdrawal function.
- uint256 amount = balances[msg.sender];
- require(amount > 0);
- token.call.value(amount)();
- balances[msg.sender] = 0;
fact_check 5-Step Safety Checklist for Operators
Download the Defi Hardening Manifesto
Get our complete 40-page technical guide to securing your smart contract infrastructure. Includes comprehensive checklists and audit prep templates.