Smart Security Practices From The Best
What do Lido, Red Stone, YieldNest, and Braintrust have in common? They’ve developed effective methods for improving security without drastically increasing costs. Top-tier protocol […]
Due to this vulnerability the protocol experiences a loss of assets proportional to the fees charged.
The Max Vaults allocate assets to KernelStrategy deployed contracts that stake assets in Kernel vaults. When a user requests to withdraw assets from the Max Vault, those assets are taken from a special KernelStrategy contract called the buffer strategy (i.e. ynWBNBk). However, when the funds in buffer strategy are not sufficient, the team has to withdraw funds from other strategies (e.g. ynBNBk).
The KernelStrategy contracts include a fee structure for withdrawals which does not work properly for all cases. During withdrawal from KernelStrategy to Max Vault and to the Buffer Strategy, the fee should not be applied. This is essential to prevent an increase in the share rate in the strategy from which the assets are withdrawn (causing a situation where more shares are burned than assets withdrawn) and ensure that other users who have deposited into the strategy do not unintentionally share in the fee distribution.
Attackers could execute the following sequence:
MEDIUM – The protocol experiences a loss of assets proportional to the fees charged.
Adjust the fee calculation functions to exclude Max Vaults, Buffer Vault, and other YieldNest vaults from the fee structure.
Meet Composable Security
Get throughly tested by the creators of Smart Contract Security Verification Standard
Let us help
Get throughly tested by the creators of Smart Contract Security Verification Standard