-
Notifications
You must be signed in to change notification settings - Fork 10
fibonacci - FeeManager's admin cannot grant or revoke any role #148
Comments
Escalate I believe this is a valid issue. The implementation does not align with what is described in the README. |
You've created a valid escalation! To remove the escalation from consideration: Delete your comment. You may delete or edit your escalation comment anytime before the 48-hour escalation window closes. After that, the escalation becomes final. |
Agree with escalation that it's valid, but I believe it could be spotted on deployment and fixed with re-deploy without losing funds. Moreover, the roles can still be set and revoked. Hence, believe medium is approriate here, planning to accept the escalation. |
EDITION_MINTER_ROLE
is not configurable as grantRoles()
cannot be called in Edition.sol
#213
hi @WangSecurity, #240 is a dupe of this |
Result: |
Escalations have been resolved successfully! Escalation status:
|
The protocol team fixed this issue in the following PRs/commits: |
The Lead Senior Watson signed off on the fix. |
fibonacci
high
FeeManager's admin cannot grant or revoke any role
Summary
The
FeeManager
contract lacks an interface for the admin to grant or revoke roles.Vulnerability Detail
The contest's README states:
The
FeeManager
contract, inherited from solady'sOwnableRoles
contract, only permits the owner to manage roles.The
FeeManager
contract itself does not provide any interfaces that enable the admin to grant or revoke roles.Impact
The admin cannot grant or revoke any roles. This limitation cannot be changed since the contract is not upgradable. A new role can only be granted or revoked by the owner, which is the
TitlesCore
contract, and it also lacks the corresponding functions.Code Snippet
https://github.com/sherlock-audit/2024-04-titles/blob/main/README.md#q-are-there-any-protocol-roles-please-list-them-and-provide-whether-they-are-trusted-or-restricted-or-provide-a-more-comprehensive-description-of-what-a-role-can-and-cant-doimpact
https://github.com/sherlock-audit/2024-04-titles/blob/main/wallflower-contract-v2/src/fees/FeeManager.sol#L115
Tool used
Manual Review
Recommendation
Implement admin interfaces to manage roles
The text was updated successfully, but these errors were encountered: