Skip to content
Business logic Audit finding Intermediate

USDM locked unless guardian remove liquidity

The USDM deposit contract lacks a mechanism for users to withdraw their deposited USDM, so funds remain locked until the guardian removes liquidity. An attacker cannot directly exploit this, but users are unable to retrieve their deposits.

gzeon Follow

Originally disclosed on Code4rena

Submitted by gzeon

In README.me:

USDM deposits are locked based on the KPI’s from carrot.eth

However, USDM deposits are also locked until guardian remove liquidity because there are no mechanism to remove deposited USDM in withdraw.

USDMPegRecovery.sol#L90

leekt (Concur) confirmed

Alex the Entreprenerd (judge) commented:

The warden has identified Admin Privilege in that the deposit contract is controlled by the admin and liquidity LPd into the Curve Pool cannot be withdrawn by user (although code for redemption is present).

Ultimately a refactoring that transforms this contract in something similar to a Yield Bearing Vault would solve for accounting while allowing an easier time adding and removing liquidity.

Personally I’d recommend the sponsor to denominate the deposit token in the CRV_LP token to avoid issues with Single Sided Exposure, which other findings in this contest already discuss.


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

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 withdraw function does not include logic to return deposited USDM to users, leaving the guardian as the only party able to free liquidity.

Impact

Users cannot withdraw their USDM deposits; the funds are locked until the guardian removes liquidity, and the judge notes the deposit contract is controlled by the admin.

What the attacker needed

User deposits USDM; guardian controls liquidity removal

The fix

The judge suggests refactoring the contract into a yield-bearing vault and denominating the deposit token in the CRV_LP token to avoid single-sided exposure.

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.

This is a smart contract where users deposit a token called USDM. The code that is supposed to let them take their money back is missing or incomplete, so their funds stay stuck until an admin removes liquidity. It is a design flaw rather than an attack that steals funds.

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 gzeon

View all

46 more disclosed reports, best first.

More from Concur Finance contest

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.