deployHolographableContract()
uniqueness
#339
Labels
3 (High Risk)
Assets can be stolen/lost/compromised directly
bug
Something isn't working
invalid
This doesn't seem right
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
responded
The Holograph team has reviewed and responded
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Lines of code
https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/HolographFactory.sol#L206-L215
Vulnerability details
Impact
The holographable smart contract deployment can not guarantee the uniqueness. A malicious user could deploy multiple duplicate contracts, then the
brigeIn
could not make sure the uniqueness of the minted or burned NFT.Proof of Concept
The
salt
andinitCode
could be changed and generate different hash.Tools Used
Manual analysis.
Recommended Mitigation Steps
Do not include
salt
andinitCode
in the hash.The text was updated successfully, but these errors were encountered: