You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 26, 2023. It is now read-only.
GimelSec
high
Wrong
CHANGE_COLLATERAL_DELAY
in CollateralBookSummary
Admins can bypass time delay due to the wrong value of
CHANGE_COLLATERAL_DELAY
.Vulnerability Detail
The comment shows that the
CHANGE_COLLATERAL_DELAY
should be 2 days, but it's only 200 which means 3 minutes and 20 seconds.Impact
Admin can bypass the 2 days time delay and only need to wait less than 5 minutes to call
changeCollateralType
.Code Snippet
https://github.com/sherlock-audit/2022-11-isomorph/blob/main/contracts/Isomorph/contracts/CollateralBook.sol#L23
https://github.com/sherlock-audit/2022-11-isomorph/blob/main/contracts/Isomorph/contracts/CollateralBook.sol#L130
Tool used
Manual Review
Recommendation
The text was updated successfully, but these errors were encountered: