Fantastic Taupe Tortoise - liquidationType2
will self DOS due to lack of ETH
#1056
Labels
Sponsor Confirmed
The sponsor acknowledged this issue is valid
Will Fix
The sponsor confirmed this issue will be fixed
Fantastic Taupe Tortoise
Medium
liquidationType2
will self DOS due to lack of ETHSummary
ETH is not pulled from the treasury to turn into sUSD.
Although it's in a payable function, the ETH is inside the treasury contract and admin doesn't have access directly to take ETH out and send via
msg.value
, it has to be pulled internally from treasury when calling liquidationRoot Cause
lack of ETH movement from treasury into borrowLiquidation contract. So, borrowLiquidation.liquidationType2 will fail.
Internal pre-conditions
No response
External pre-conditions
No response
Attack Path
When liquidating type 2, the Eth in value is turned into WETH, and then ot is turned into sETH from synthetix.
Then the sETH is turned into sUSD and this amount is used to liquidate.
But the issue is
liquidationType2
onBorrowLiqudiation
contract lacks the ETH in it. Although its in a payable function, the ETH is inside the treasury contract and admin doesn't have access directly to take ETH out and send viamsg.value
, it has to be pulled from treasury and continue the steps to swap intosUSD
.borrowLiquidation.liquidationType2
Impact
liquidationType2
is DOS, broken functionalityPoC
No response
Mitigation
move ETH from the treasury to BorrowLiquidation
The text was updated successfully, but these errors were encountered: