# A successfully disputed redemption proposal has still increased the redemption fee base rate; exploit to depeg dUSD

Disputed redemption proposals still raise the redemption base rate, letting an attacker self-dispute to inflate fees and block dUSD repegging, causing depeg.

- Payout: Audit contest
- Severity: high
- Program: DittoETH
- Found by: d3e4
- Disclosed: 2024-06-25
- Write-up quality: 8/10
- Original: https://github.com/code-423n4/2024-03-dittoeth-findings/issues/274
- Library page: https://bugbountylibrary.com/r/c4%3A2024-03-dittoeth%3AH-01
- Tags: area:web3 domain:web3 impact:funds-loss impact:integrity kind:contest platform:code4rena sev:high tech:solidity technique:chained technique:source-review vuln:business-logic vuln:fee-bypass

**Target:** DittoETH RedemptionFacet redemption proposal/dispute mechanism
**Root cause:** The redemption base rate is increased when a proposal is created but never decreased when the proposal is successfully disputed, so fees persist despite no redemption occurring.
**Steps:**
1. Attacker proposes a redemption of amount `a` from account A, paying fee and increasing `baseRate` by `a/(2*totalSupply)` plus 0.5% base.
2. Attacker disputes the same proposal from account B, recovering the proposed amount minus penalty (penalty avoided since same owner), but `baseRate` remains elevated.
3. Repeat/split proposals into `n` parts to minimize total fee paid while still raising baseRate to `1 - price - 0.005`.
4. Maintain baseRate against decay by re-proposing periodically; worst-case cost ~`(1-price)^2 * 2 * totalSupply * ln(2)/12` per hour.
5. If an undercollateralized short record exists, partially redeem it to near-zero collateral, then propose/dispute against it so fees are ~0 while baseRate still rises, inflating rate to 100% for free.
**How found:** Code reading of RedemptionFacet: noticed baseRate updated in proposeRedemption but no corresponding adjustment in disputeRedemption; reasoned about fee economics and peg restoration incentives to construct self-dispute attack.
**Exploitation:** Attacker uses two accounts to atomically propose and dispute redemptions, paying only the redemption fee (avoiding penalty) while persistently raising the base rate. This makes redemptions unprofitable, preventing peg restoration when dUSD trades below $1. With an undercollateralized short record, fees approach zero, allowing near-free inflation of the redemption rate to 100%, decaying to 6.25% over 48h—enough to block redemptions down to $0.9325. Attacker can then buy cheap depegged dUSD and later redeem profitably.
**Escalation:** Chaining with undercollateralized short records (collateral cap vs proposed amount mismatch) reduces attack cost to near zero; repeated every 48h maintains arbitrarily high redemption rate.
**Insight:** When a state variable is mutated on one path (propose) but not reverted on the compensating path (dispute), check whether the asymmetry can be weaponized by self-dealing across two accounts to avoid penalties while accumulating the mutation.

