When liquidating a user, if the CR is already under minimumCR, liquidateSecondary() can be called without needing to first flagShort(). However, users can use this to gain an advantage with the combineShorts() function.
combineShorts() function reverts when the new shorts collateral rate is < primaryLiquidationCR. But it only reverts if one of the shorts has flags. If any of the shorts don't have any flag (shorts with CR < minimunCR don't need to be flagged), combineShorts() function won't revert and users can DOS liquidation.
POC :
ShortsErcDebt.t.sol
Anyone can front-run the liquidation and DOS liquidation with the combineShorts() function and create bad debt.
Manual Review
Shorts with CR < minimumCR should not be allowed to combine with other shorts.
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.