Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cancel METHOD CAN BE CALLED EVEN IN PAUSED STATE #459

Closed
code423n4 opened this issue Jan 20, 2023 · 3 comments
Closed

cancel METHOD CAN BE CALLED EVEN IN PAUSED STATE #459

code423n4 opened this issue Jan 20, 2023 · 3 comments
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

Comments

@code423n4
Copy link
Contributor

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 a Paused state has been called, the action of Cancelling RToken issuance should be Disabled.

Impact

The Action of cancelling the RToken can be taken even in paused state.

Proof of Concept

File: p1/RToken.sol

406:      function cancel(uint256 endId, bool earliest) external notFrozen {

Link to Code

Here the cancel method has used notFrozen modifier. But has no access control for paused state.

Tools Used

Manual Review

Recommended Mitigation Steps

Change the modifier from notFrozen to notPausedOrFrozen

@code423n4 code423n4 added 2 (Med Risk) Assets not at direct risk, but function/availability of the protocol could be impacted or leak value bug Something isn't working labels Jan 20, 2023
code423n4 added a commit that referenced this issue Jan 20, 2023
@c4-judge
Copy link
Contributor

0xean marked the issue as primary issue

@c4-judge c4-judge added the primary issue Highest quality submission among a set of duplicates label Jan 23, 2023
@c4-judge c4-judge added duplicate-470 and removed primary issue Highest quality submission among a set of duplicates labels Jan 23, 2023
@c4-judge
Copy link
Contributor

0xean marked the issue as duplicate of #470

@c4-judge c4-judge added QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax downgraded by judge Judge downgraded the risk level of this issue duplicate-456 and removed 2 (Med Risk) Assets not at direct risk, but function/availability of the protocol could be impacted or leak value labels Jan 31, 2023
@c4-judge
Copy link
Contributor

Duplicate of #456

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants