Skip to content
Business logic Audit finding Intermediate

Yield form LRTs are forever stuck in the protocol and cannot be withdrawn

Yield generated from liquid restaking tokens is credited to the treasury during liquidation and CDS withdrawal, but no function exists to withdraw or distribute those funds. The yield therefore remains permanently locked in the protocol.

0x73696d616f Follow with Audinarey

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2024-11-autonomint-judging/issues/818

Found by

0x73696d616f, Audinarey

Summary

During borrower liquidation (liquidationType1()) and withdrawal from the CDS, the yield from LRTs is updated and stored in the treasury.

Root Cause

Solidity
File: CDSLib.sol
667:      @>         interfaces.treasury.updateYieldsFromLiquidatedLrts( // @audit SUBMITTED-HIGH: these funds are stuck forever in the treasury
668:                     weETHAmount - ((weETHAmountInETHValue * 1 ether) /  params.weETH_ExchangeRate) + 
669:                     rsETHAmount - ((rsETHAmountInETHValue * 1 ether) /  params.rsETH_ExchangeRate)
670:                 );


File: borrowLiquidation.sol
265:         uint256 yields = depositDetail.depositedAmount - ((depositDetail.depositedAmountInETH * 1 ether) / exchangeRate);
266: 
267:         // Update treasury data
268:         treasury.updateTotalVolumeOfBorrowersAmountinWei(depositDetail.depositedAmountInETH);
269:         treasury.updateTotalVolumeOfBorrowersAmountinUSD(depositDetail.depositedAmountUsdValue);
270:         treasury.updateDepositedCollateralAmountInWei(depositDetail.assetName, depositDetail.depositedAmountInETH);
271:         treasury.updateDepositedCollateralAmountInUsd(depositDetail.assetName, depositDetail.depositedAmountUsdValue);
272:         treasury.updateTotalInterestFromLiquidation(totalInterestFromLiquidation);
273:  @>     treasury.updateYieldsFromLiquidatedLrts(yields); // @audit ??? questionable

The problem is that there is no way to for the protocol to retrieve these funds neither is it distributed to users elsewhere

Internal pre-conditions

No response

External pre-conditions

No response

Attack Path

No response

Impact

Yield form LRTs is stuck in the treasury without a way to withdraw them

PoC

No response

Mitigation

Consider inplementing a mechanism to withdraw or distribute this yield

The original report as published on Sherlock, by 0x73696d616f. Images and videos are our own copies; raw HTML is shown as text. View it on Sherlock.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the treasury records LRT yield through an update function but has no corresponding withdrawal or distribution path.

Impact

Yield from LRTs is permanently stuck in the treasury, so neither the protocol nor users can access it.

What the attacker needed

LRT yield accrues in treasury

The fix

A mechanism should be implemented to withdraw or distribute the accumulated LRT yield.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Liquid restaking tokens are assets that earn a small ongoing reward, called yield. This report says the protocol records that reward in a treasury account but never provides any way to move it out or share it, so the money sits there unused.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by 0x73696d616f

View all

172 more disclosed reports, best first.

More from Autonomint Colored Dollar V1

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.