This repository has been archived by the owner on Oct 27, 2024. It is now read-only.
fibonacci - Owner and admin roles in TitlesGraph are not initialized #146
Labels
Duplicate
A valid issue that is a duplicate of an issue with `Has Duplicates` label
Escalation Resolved
This issue's escalations have been approved/rejected
Medium
A valid Medium severity issue
Reward
A payout will be made for this issue
fibonacci
high
Owner and admin roles in TitlesGraph are not initialized
Summary
The
TitlesGraph
contract is intended to be upgradable. However, the owner and admin roles are assigned within the constructor. This implies that they will be initialized in the implementation storage, leaving the proxy storage unaffected.Vulnerability Detail
Impact
Neither the owner nor the admin of the
TitlesGraph
contract has the ability to manage it.Code Snippet
https://github.com/sherlock-audit/2024-04-titles/blob/main/wallflower-contract-v2/src/graph/TitlesGraph.sol#L52-L55
Tool used
Manual Review
Recommendation
Assign owner and admin roles within an initialization function.
Duplicate of #148
The text was updated successfully, but these errors were encountered: