.@k3_capital’s sBOLD vault was reportedly exploited, with losses exceeding $3.42M. The team has paused the affected contracts. The root cause was insufficient swap-input validation combined with uncleared router allowances, allowing the attacker to manipulate the vault’s share value through donations, then recover the donated assets and repeat the attack.
Specifically, the vault calculated the minimum BOLD output from the intended collateral amount, but did not bind the caller-supplied route’s input token and amount to those parameters. SwapLogic._execute() only checked the increase in the vault’s BOLD balance. A swap could therefore pass using BOLD supplied from another source while leaving the intended collateral untouched. Both the incoming BOLD and unspent collateral would count toward totalAssets without new sBOLD shares being minted, increasing the value per share. Because the unused router allowance was not cleared after the swap, a subsequent call could also transfer the remaining collateral out of the vault.
The key attack steps are as follows: 1. The attacker obtained wstETH and WETH through flash loans, borrowed a large amount of BOLD against wstETH, and deposited most of that BOLD into the vault to acquire a majority of its sBOLD shares. 2. The attacker donated 4 WETH to the vault and called swap() with a route specifying a fake input token. During the swap, an attacker-controlled callback supplied BOLD through the router to satisfy the minimum-output check, leaving the 4 WETH and its router allowance untouched. 3. The added BOLD and unspent WETH increased totalAssets without minting new sBOLD shares. The attacker then called redeem() to cash out at the higher share value. 4. After redemption, the attacker called swap() again, nominally swapping 1 wei of wstETH. The supplied route calldata instead used transferFrom() to recover the 4 WETH through the router’s remaining allowance. 5. The attacker repeated this deposit–donate–swap–redeem–recover cycle, reusing the same 4 WETH to extract approximately $3,000 per round at other depositors’ expense.
One of the attack TXs:
Link: https://t.co/6Ps73et9XI
