Initializer Can be Reinitialized #93
Labels
3 (High Risk)
Assets can be stolen/lost/compromised directly
bug
Something isn't working
duplicate
This issue or pull request already exists
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
JOYN Contest
April 1, 2022
@securerodd
Findings
Low Risk Findings
1. Initializer Can be Reinitialized
The initializer function in
CoreCollection.sol
does not contain theonlyUnInitialized()
modifier.Code:
The
onlyUnInitialized()
modifier is currently unused in the code base. InCoreFactory.sol
, Core Collections are deployed by an EOA or contract interacting with the Core Factory itself. Without the modifier, these owners have the ability to completely reconfigure key aspects of the collection.Recommendation:
Apply the
onlyUnInitialized()
modifier to the initializer function inCoreCollection.sol
.The text was updated successfully, but these errors were encountered: