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.
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.
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.
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.