cancel
METHOD CAN BE CALLED EVEN IN PAUSED STATE
#459
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-456
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Lines of code
https://github.com/reserve-protocol/protocol/blob/df7ecadc2bae74244ace5e8b39e94bc992903158/contracts/p1/RToken.sol#L406
Vulnerability details
Description
According to
reserve.org
Docs, It is clearly stated here that whenever aPaused
state has been called, the action of Cancelling RToken issuance should beDisabled
.Impact
The Action of cancelling the RToken can be taken even in
paused
state.Proof of Concept
Link to Code
Here the
cancel
method has usednotFrozen
modifier. But has no access control forpaused
state.Tools Used
Manual Review
Recommended Mitigation Steps
Change the modifier from
notFrozen
tonotPausedOrFrozen
The text was updated successfully, but these errors were encountered: