sherlock-audit / 2023-01-illuminate-judging

1 stars 0 forks source link

Deivitto - Concerns on pause and related to pause functions over the code #42

Closed github-actions[bot] closed 1 year ago

github-actions[bot] commented 1 year ago

Deivitto

high

Concerns on pause and related to pause functions over the code

Summary

Vulnerability Detail

There is a huge concern in pause as noticed in the audit scope / concerns. Reason why I choose High label

As per said in the documentation:

That said, we retain multiple methods for approvals / withdrawals / fees / pausing gated behind admin methods to ensure the protocol can effectively safeguard user funds during the early operation of the protocol. NOTE: For the most part these methods have delays to give time for users to exit. Further, the admin will always be a multi-sig.

However, no delay is used at these pause operations at:

Neither access control, can be called by anyone:

Impact

Code Snippet

https://github.com/sherlock-audit/2023-01-illuminate/blob/main/src/Redeemer.sol#L246-L253

https://github.com/sherlock-audit/2023-01-illuminate/blob/main/src/mocks/MarketPlace.sol#L88-L95

Manual Review

Recommendation