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

EgisSecurity - SuperPool has a togglePause function, but lack whenNotPaused modifier #322

Closed
sherlock-admin2 opened this issue Aug 24, 2024 · 0 comments
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label Medium A Medium severity issue. Reward A payout will be made for this issue

Comments

@sherlock-admin2
Copy link
Contributor

sherlock-admin2 commented Aug 24, 2024

EgisSecurity

Medium

SuperPool has a togglePause function, but lack whenNotPaused modifier

Summary

SuperPool inherits from Pausable, which provides a pausability. The problem is that protocol has not used whenNotPaused modifier to any of the function, which makes the whole Pausable functionality useless. Contract also have togglePaused function, which would be useless. The issue impact is that contract does not work as expected. Issue is confirmed by the sponsor:
sponsor confirmation

Root Cause

Missed whenNotPaused modifier on the expected functions.

Internal pre-conditions

None

External pre-conditions

None

Attack Path

Users are able to deposit even if the contract is paused.

Impact

  • Breaks protocol expected functionality
  • Waste gas on deployment of functionality, which cannot be used

PoC

No response

Mitigation

Implement the modifier to all functions, which you want to limit in paused state.

Duplicate of #270

@github-actions github-actions bot closed this as completed Sep 5, 2024
@github-actions github-actions bot added Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label Medium A Medium severity issue. labels Sep 5, 2024
@sherlock-admin4 sherlock-admin4 changed the title Bitter Sandstone Worm - SuperPool has a togglePause function, but lack whenNotPaused modifier EgisSecurity - SuperPool has a togglePause function, but lack whenNotPaused modifier Sep 15, 2024
@sherlock-admin4 sherlock-admin4 added the Reward A payout will be made for this issue label Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label Medium A Medium severity issue. Reward A payout will be made for this issue
Projects
None yet
Development

No branches or pull requests

2 participants