Submitted by djxploit, also found by immeas
Market.sol#L531
In repay() users can repay their debt.
There is a require condition, that checks if the amount provided, is greater than the debt of the user. If it is, then the function reverts. This is where the vulnerability arises.
repay function can be frontrun by an attacker. Say an attacker pay a small amount of debt for the victim user, by frontrunning his repay transaction. Now when the victims transaction gets executed, the require condition will fail, as the amount of debt is less than the amount of DOLA provided. Hence the attacker can repeat the process to DOS the victim from calling the repay function.
This will prevent the victim from calling repay function.
Hence an attacker can DOS the repay function for the victim user.
Implement DOS protection.
0xean (judge) commented:
08xmt (Inverse) confirmed and commented:
