# Vaults can be purposefully bricked by leaving small amounts of rETH

Numa holders can sell tokens minted in one vault into another, draining it to dust so MAX deposit falls below MIN, soft-DoSing deposits.

- Payout: Audit contest
- Severity: medium
- Program: Numa Audit
- Found by: OpaBatyo
- Disclosed: 2024-12-04
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2024-12-numa-audit-judging/issues/220
- Library page: https://bugbountylibrary.com/r/sherlock%3A2024-12-numa-audit%3AM-14
- Tags: area:web3 domain:web3 impact:dos kind:contest platform:sherlock sev:medium tech:solidity technique:source-review vuln:business-logic vuln:dos

**Target:** NumaVault buy/sell deposit logic
**Root cause:** NumaVault.buy caps deposits at max_percent of current vault balance, but sell allows burning Numa minted in any vault, so an attacker can drain a vault's LST balance until MAX < MIN (1000 wei), making deposits impossible.
**Steps:**
1. Mint large Numa in a large vault.
2. Sell that Numa into a smaller target vault, withdrawing nearly all its rETH and leaving ~9999 wei.
3. Observe MAX = max_percent*vaultsBalance/1000 falls below MIN=1000 wei, so `require(_inputAmount <= MAX)` blocks all deposits.
4. Depositors are pushed to the attacker's preferred large vault, boosting attacker rewards.
**How found:** Code reading of NumaVault.buy's MAX check against vault balance and noticing sell lacks a check that burned Numa originated in the same vault.
**Exploitation:** Attacker with Numa liquidity from a big vault sells into smaller vaults, leaving negligible rETH (e.g. 0.0001 rETH) so MAX deposit becomes a fraction of dust; smaller vaults become unusable for deposits while attacker accrues fees/rewards in the larger vault.
**Escalation:** Large LPs can collude to brick multiple smaller vaults, concentrating liquidity and rewards in preferential vaults.
**Insight:** When a deposit cap is a percentage of current balance, check whether withdrawals/sells from other pools can shrink that balance below the minimum deposit threshold, turning a ratio cap into a griefing DoS.

