QA Report #91
Labels
bug
Something isn't working
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Summary of Findings
Issue#1 : Null address check missing in setGovernance()
Issue#2 : Input validation for _maintenanceMargin missing in setParams
Details Issue#1
Title : Null address check missing in setGovernance()
Impact
Null address check is not done while setting new value of governance address, which is one of the most important parameter for controlling the protocol.
Proof of Concept
Contract : Governable.sol
Recommended Mitigation Steps
Add require statement to check for null address
Details Issue#2
Title : Input validation for _maintenanceMargin missing in setParams
Impact
Missing input validation for important protocol parameter maintenanceMargin
During initialization, the value for this parameter is checked, however during any subsequent update, its not checked.
Proof of Concept
Contract : ClearningHouse.sol
Function : setParams()
Line : 344
Recommended Mitigation Steps
Add input validation as used in the initialize() function in the setParams function also
The text was updated successfully, but these errors were encountered: