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

0xMax1mus - SuperPool::togglePause is not pausing or unpausing the contract's state #517

Closed
sherlock-admin3 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-admin3
Copy link

sherlock-admin3 commented Aug 24, 2024

0xMax1mus

High

SuperPool::togglePause is not pausing or unpausing the contract's state

Summary

SuperPool contract has a function togglePause which should allow the Owner to pause the contract state when something malicious happens and Unpause them Whenever intended. But in the current case of the contract, Not even a single function can be paused or have the effects of pausing and Unpausing.

Vulnerability Detail

SuperPool contract functions cannot be paused even though Owner tries to pause the contract by calling togglePause Because None of the functions of SuperPoolimplements whenNotPaused modifier which is responsible of checking whether the contract is paused or not.
As the whenNotPaused modifier is not implemented in any of the functions of SuperPool the contract's state/functions cannot be paused/unpaused and the function togglePause will have no impact on contract's state/functions.
Because of Which SuperPool contract's state Cannot be Paused with the function togglePause which should be its functionality as mentioned in the comment of togglePause function.

Impact

SuperPool contract's state or functions cannot be paused in any necessary situations.

Code Snippet

https://github.com/sherlock-audit/2024-08-sentiment-v2/blob/main/protocol-v2/src/SuperPool.sol#L163C5-L167C6
https://github.com/sherlock-audit/2024-08-sentiment-v2/blob/main/protocol-v2/src/SuperPool.sol#L258C5-L263C6
https://github.com/sherlock-audit/2024-08-sentiment-v2/blob/main/protocol-v2/src/SuperPool.sol#L281C5-L286C6

Tool used

Manual Review

Recommendation

Implement the modifier whenNotPaused to every function.

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 Fancy Iron Kookaburra - SuperPool::togglePause is not pausing or unpausing the contract's state 0xMax1mus - SuperPool::togglePause is not pausing or unpausing the contract's state 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