Beginner FriendlyDeFiFoundry
100 EXP
View results
Submission Details
Severity: high
Valid

Wrong merkle root used in deployment

Summary

The deployment process for the contract involves the utilization of an incorrect Merkle root during deployment. This discrepancy introduces a vulnerability where the contract may be deployed with inaccurate or outdated Merkle root data, potentially compromising the integrity and reliability of the airdrop mechanism.

Vulnerability Details

The vulnerability arises from the use of an incorrect Merkle root value during contract deployment. Deploying the contract with an inaccurate Merkle root can result in users being unable to claim their airdrop rewards or experiencing discrepancies in the airdrop distribution process. Furthermore, the deployment of the contract with an incorrect Merkle root may undermine the trust and credibility of the airdrop mechanism, leading to dissatisfaction among users.

Impact

The impact of this vulnerability can range from inconvenience and frustration for users unable to claim their airdrop rewards to reputational damage for the project associated with the inaccurate distribution of tokens. In addition, if the incorrect Merkle root leads to discrepancies in token distribution, it may necessitate manual intervention to rectify the situation, consuming additional resources and potentially causing further delays and complications.

Tools Used

Manual Review

Recommendations

To mitigate this vulnerability, it is essential to verify and ensure the accuracy of the Merkle root used during contract deployment. This can be achieved by carefully cross-referencing the Merkle root value with the authoritative source or data provided for the airdrop distribution. Additionally, implementing robust validation checks and testing procedures during the deployment process can help detect and prevent the deployment of the contract with an incorrect Merkle root. Furthermore, maintaining transparency and communication with users regarding any changes or updates to the Merkle root data can help foster trust and confidence in the airdrop mechanism.

//@audit wrong merkle root used in deployment
- bytes32 public s_merkleRoot = 0xf69aaa25bd4dd10deb2ccd8235266f7cc815f6e9d539e9f4d47cae16e0c36a05;
+ bytes32 public s_merkleRoot = 0x3b2e22da63ae414086bec9c9da6b685f790c6fab200c7918f2879f08793d77bd;
Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

wrong-usdc-decimals-in-merkle

Support

FAQs

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