Project

One World
NFTDeFi
15,000 USDC
View results
Submission Details
Severity: medium
Invalid

Use of CREATE method is suspicious of reorg attack

Summary

Creating a new MembershipERC1155 through the MembershipFactory::createNewDAOMembership is susceptible to reorg attacks.

Vulnerability Details

Using the CREATE method and having in mind that the contracts will be deployed to Polygon, which is a chain that have had a block reorg events, can lead to funds being send to a DAO be stolen.

Proof of Concept

Consider the following scenario:

  1. Alice create a DAO.

  2. Block reorg is happening.

  3. Bob creates DAO with the same address of which the Alice's should have been.

  4. Bob is the creator of Alice's DAO.

Links to similar issues reported in Solodit: 1, 2

Tools Used

Manual Review

Recommendations

Use CREATE2 with salt that includes the msg.sender.

Updates

Lead Judging Commences

0xbrivan2 Lead Judge
10 months ago
0xbrivan2 Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Too generic

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.