Missing onlyUnInitialized modifier on initialize() function #114
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")
Missing
onlyUnInitialized
modifier oninitialize()
functionhttps://github.com/code-423n4/2022-03-joyn/blob/main/core-contracts/contracts/CoreCollection.sol#L78
Guess that
onlyUnInitialized
modifier were created forinitialized()
function, but it wasn't called on the function. As the name,initialize
should be called once early when the contract is deployed. But in the current implementation theinitialize
can be called multiple timesRECOMMENDED MITIGATION STEP
I recommend to call the
onlyUnInitialized
in theinitialize()
functionThe text was updated successfully, but these errors were encountered: