M-15 MitigationConfirmed #110
Labels
confirmed for report
This issue is confirmed for report
mitigation-confirmed
MR-M-15
satisfactory
satisfies C4 submission criteria; eligible for awards
Lines of code
Vulnerability details
C4 Issue
M-15: confirmUnderwriter() need to recalculate getMinTimeBetweenWithdrawalQueues
Comments
Original vulnerabilities/impacts:
The issue raises an edge case where changing the underwriter contract might result in existing immutable
getMinTimeBetweenWithdrawalQueues
too be too small. WhengetMinTimeBetweenWithdrawalQueues
is too small, when a loan is paid off, the loanId’s associated queue might have already been deleted.Mitigation
Fix: https://github.com/pixeldaogg/florida-contracts/pull/387/files
The mitigation is to check the new underwriter max loan duration (
IPoolOfferHandler(__underwriter).getMaxDuration()
), and ensure that the new max loan duration is not greater than the existing max loan duration.The mitigation resolves the issue because as long as the max loan duration will not be reduced, the total maximum duration a loan may take from initiation to liquidation settlement will not be reduced, which means that the existing
getMinTimeBetweenWithdrawalQueues
will still be valid.Conclusion
LGTM
The text was updated successfully, but these errors were encountered: