Project

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

The user can frontrun `updateDAOMembership` call and buy NFT for lower price

Summary

The EXTERNAL_CALLER updates the tier configurations for a specific DAO using the updateDAOMembership call. This includes adjusting the maximum number of members per tier or price. Any user has the opportunity to frontrun this call to gain an advantage.

Vulnerability Details

Scenarios:

  • A user notices the updateDAOMembership call, where the price for Tier 0 will increase from 1000e6 USDC to 1100e6 USDC. The user frontruns the call to purchase an NFT at the lower price before the update takes effect.

  • A user sees the updateDAOMembership call, which will decrease the maximum number of members for Tier 5 from 10 to 8. At the time, 7 NFTs for Tier 5 have already been minted. The user frontruns the call to buy two additional NFTs for Tier 5, even though the updated limit will be 8.

Impact

User can buy NFT for lower price before update the tier.

Tools Used

Manual review

Recommendations

Consider implementing a pause mechanism or a similar safeguard before updating the tier configurations to prevent such frontrunning behavior.

Updates

Lead Judging Commences

0xbrivan2 Lead Judge 8 months ago
Submission Judgement Published
Invalidated
Reason: Design choice
0xbrivan2 Lead Judge 8 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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