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 […]
The vulnerability leads to the inability to automatically withdraw WBNB from the KernelClisStrategy.
The KernelClisStrategy contract is designed to stake deposited WBNB into the Kernel clisBNB vault. It happens automatically if the syncDeposit option is enabled. When an allocator initiates a withdrawal from the strategy, the contract verifies if the balance is adequate to fulfill the request.
If the balance is insufficient, which is often the case due to the strategy’s approach of predominantly staking assets in the Kernel vault, the contract attempts to unstake the required amount from Kernel.
IStakerGateway(strategyStorage.stakerGateway).unstakeClisBNB(assets - vaultBalance, referralId);However, the actual amount that is unstaked can differ from the requested amount. This discrepancy may arise in two scenarios:
In such instances, the team must manually withdraw assets using the processor function to satisfy the withdrawal request.
MEDIUM – The vulnerability leads to the inability to automatically withdraw WBNB from the KernelClisStrategy.
Addressing this issue is complex. When a fee is applied in Lista DAO or when Kernel returns less WBNB than anticipated, it indicates that YieldNest has fewer assets available than expected.
To mitigate this, YieldNest could either offset the shortfall using treasury funds or pass the loss on to users.
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