Missing events and sanity/threshold checks for critical onlyOwner setter functions in Liquidation #77
Labels
bug
Something isn't working
disagree with severity
duplicate
This issue or pull request already exists
invalid
This doesn't seem right
sponsor confirmed
Handle
0xRajeev
Vulnerability details
Impact
Lack of input validation on key function parameters is a best-practice. Not applying sanity/threshold checks will allow incorrect values to be set and affect the liquidation dynamics of the markets. Lack of events reduces transparency and ability for off-chain users/interfaces/monitors to evaluate and react to onchain changes.
Impact: Owner changes releaseTime, minimumLeftoverGasCostMultiplier or maxSlippage parameters of Liquidation. Without sanity/threshold checks or event emissions, these are changed to absurd values. Liquidations are significantly impacted. Users lose trust in markets and exit. Protocol reputation takes a hit.
Proof of Concept
https://github.com/code-423n4/2021-06-tracer/blob/74e720ee100fd027c592ea44f272231ad4dfa2ab/src/contracts/Liquidation.sol#L449-L472
Tools Used
Manual Analysis
Recommended Mitigation Steps
Add reasonable sanity/threshold checks and event emissions to critical onlyOwner setter functions in Liquidation.
The text was updated successfully, but these errors were encountered: