Protocol has restriction on max value of collateralRatio. Now it is set to 1500%.
However users can repay ercDebt, raising collateralRatio to arbitrary value. It can be done via Secondary Exit Short
There is no check on max collateralRatio in functions exitShortWallet() and exitShortErcEscrowed(). In these functions user provides erc tokens, and ercDebt of shortRecord decreases. CollateralRatio is calculated as collateral / debt - use can repay for example 99% of debt, hence collRatio will become 100 times higher.
However this check presents in shortOrder creation and updating collateral:
https://github.com/Cyfrin/2023-09-ditto/blob/a93b4276420a092913f43169a353a6198d3c21b9/contracts/facets/ShortOrdersFacet.sol#L45-L48
https://github.com/Cyfrin/2023-09-ditto/blob/a93b4276420a092913f43169a353a6198d3c21b9/contracts/facets/ShortRecordFacet.sol#L56
Orders with collateralRatio above limit can exist in protocol
Manual Review
Add check of collateralRatio:
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.