Closed sherlock-admin3 closed 6 months ago
Escalate
This issue is not a duplicate of https://github.com/sherlock-audit/2024-04-titles-judging/issues/272. This one describes how the admin and owner of the proxy will never be set for TitlesGraph
. #272 mentions how the implementation of TitlesCore
is left uninitialized.
Escalate
This issue is not a duplicate of https://github.com/sherlock-audit/2024-04-titles-judging/issues/272. This one describes how the admin and owner of the proxy will never be set for
TitlesGraph
. #272 mentions how the implementation ofTitlesCore
is left uninitialized.
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 the escalation and believe it should be a duplicate of #445. Planning to accept and duplicate accordingly.
Result: Medium Duplicate of #445
0x73696d616f
high
TitlesGraph
is missing aninitialize()
function and is setting theowner
and theadmin
in the constructor, having noowner
oradmin
in the proxySummary
TitlesGraph
is missing aninitialize()
function to set theowner
and/or theadmin
, which would leave the proxy withoutowner
oradmin
.Vulnerability Detail
owner
andadmin
are set inTitlesGraph::constructor()
, in the implementation's storage. Thus, when the implementation is called through the proxy's delegatecall,owner
andadmin
will not be assigned and all the permissioned functions by these roles are not going to work, namely all that use roles and upgradeability functionality.Impact
Permissioned functions by the
owner
oradmin
are not reachable.Code Snippet
The
initialize()
function is missing inTitlesGraph
, so the code can not be linked. However, it can be seen that the constructor executes the logic that should have been ininitialize()
instead. TitlesGraph::constructorTool used
Manual Review
Vscode
Recommendation
Implement the
initialize()
function:Duplicate of #445