0x73696d616f - GoodDollarExpansionController
inherits PausableUpgradeable
but does not make any function pausable
#49
Labels
Sponsor Confirmed
The sponsor acknowledged this issue is valid
Will Fix
The sponsor confirmed this issue will be fixed
0x73696d616f
Medium
GoodDollarExpansionController
inheritsPausableUpgradeable
but does not make any function pausableSummary
GoodDollarExpansionController
inheritsPausableUpgradeable
but does not have any pausing functionality implemented. This renders the inheritedPausableUpgradeable
useless and will make it impossible to pause this contract.Root Cause
In
GoodDollarExpansionController:137,153,170,192
, thewhenNotPaused
modifier is not implemented as well as functions to set paused or unpaused.It calls some functions in
GoodDollarExchangeProvider
that may be paused there, but it would pause all functions inGoodDollarExchangeProvider
, and the protocol may intend to pause only the functions exposed inGoodDollarExpansionController
.Internal pre-conditions
None.
External pre-conditions
None.
Attack Path
GoodDollarExpansionController
functions but fails to do so.Impact
GoodDollarExpansionController
can not be paused.PoC
Check the contract here.
Mitigation
Implement
whenNotPause
modifiers in the functions and create functions to pause/unpause the contract.The text was updated successfully, but these errors were encountered: