Open sherlock-admin4 opened 7 months ago
1 comment(s) were left on this issue during the judging contest.
WangAudit commented:
refer to 24
The protocol team fixed this issue in PR/commit https://github.com/Tapioca-DAO/TapiocaZ/commit/5cf2563fdd12787f5414690ede10681af6630eb8.
bin2chen
medium
Multiple contracts cannot be paused
Summary
For safety, tapioca has added
whenNotPaused
restrictions to multiple contracts But there is no method provided to modify the_paused
state If a security event occurs, it cannot be paused at allVulnerability Detail
Take
mTOFT.sol
as an example, multiple methods arewhenNotPaused
But the contract does not provide a
public
method to modify_paused
Note:Pausable.sol
does not have apublic
method to modify_paused
In reality, there have been multiple reports of security incidents where the protocol side wants to pause to prevent losses, but cannot pause, strongly recommend adding
Note: The following contracts cannot be paused
Impact
Due to the inability to modify
_paused
, it poses a security riskCode Snippet
https://github.com/sherlock-audit/2024-02-tapioca/blob/main/TapiocaZ/contracts/tOFT/mTOFT.sol#L50
Tool used
Manual Review
Recommendation