# If a redemption has N disputable shorts, it is possible to dispute N-1 times the redemption to maximize the penalty

Disputer can split one redemption dispute into N-1 separate disputes, each recomputing penalty against a higher CR, extracting more penalty than a single dispute.

- Payout: Audit contest
- Severity: medium
- Program: DittoETH
- Found by: Infect3d
- Disclosed: 2024-06-25
- Write-up quality: 7/10
- Original: https://github.com/code-423n4/2024-03-dittoeth-findings/issues/110
- Library page: https://bugbountylibrary.com/r/c4%3A2024-03-dittoeth%3AM-08
- Tags: area:web3 domain:web3 impact:funds-loss kind:contest platform:code4rena sev:medium tech:solidity technique:chained vuln:business-logic

**Target:** DittoETH redemption dispute mechanism (smart contract)
**Root cause:** Dispute penalty is computed per-call from disputeCR vs the single invalid short's CR, and the contract does not require proposal[incorrectIndex-1].CR <= disputeCR, so the same proof-short can be reused to invalidate shorts one at a time with a larger CR delta each time.
**Steps:**
1. Setup shorts with CR1=1.1, CR2=1.2, CR3=1.3, CR4=1.4, each ercDebt=1 ETH.
2. Redeemer proposes [CR2, CR3, CR4].
3. Disputer calls dispute with proof CR1 and incorrectIndex pointing at CR4, then CR3, then CR2 (three separate txs).
4. Each call recomputes penaltyPct = min(max(callerFeePct,(CR_i-CR1)/CR_i),0.33) and applies penaltyAmt = ercDebt*penaltyPct.
5. Sum penalties: 0.214+0.142+0.091=0.447 ETH vs 0.273 ETH for a single dispute of all three.
**How found:** Reasoning about the penalty formula: noticed penaltyPct scales with (currentProposal.CR - disputeCR)/currentProposal.CR, so disputing the highest invalid short individually yields a larger percentage than disputing the whole batch at once; then checked that the contract permits repeated disputes with the same proof.
**Exploitation:** Attacker monitors for a redemption proposal containing multiple shorts all above a lower-CR short they can use as proof. Instead of one dispute invalidating all, they submit N-1 disputes, each targeting the highest remaining invalid short with the same low-CR proof, maximizing per-call CR delta and thus total penalty paid by redeemer and awarded to disputer.
**Insight:** When a penalty/reward formula is proportional to a delta between a fixed proof value and a per-item value, check whether the same proof can be replayed against each item individually to sum larger deltas than a single batch call; look for missing monotonicity checks like proposal[i-1].CR <= disputeCR.

