The AssetSwapPath
library lacks validation against circular paths, allowing duplicate assets in swap configurations. This enables price manipulation attacks affecting debt settlement and protocol collateralization.
The attack exploits the circular path through a coordinated sequence of operations. Initially, the attacker manipulates the sUSDe price by executing a large trade in the first Curve pool, artificially inflating the price for the first swap leg. Path circles back to sUSDe at different price in second Curve pool. This creates arbitrage opportunity between the two sUSDe prices This manipulation creates a price discrepancy that can be exploited during settlement.
When settlement executes through CreditDelegationBranch
:
The manipulated prices propagate through the system, ultimately corrupting critical state:
At the protocol level, this manipulation fundamentally undermines the debt settlement process. Settlement amounts become unreliable as they're based on artificially manipulated prices. Engine backing calculations inherit these manipulated values, leading to inaccurate collateralization ratios throughout the system.
The financial implications extend beyond direct manipulation profits. The protocol suffers from degraded settlement accuracy and increased operational costs from unnecessary circular swaps. This creates a systemic risk of undercollateralization as settlement values diverge from true market prices.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.