stake.link

stake.link
DeFiHardhatBridge
27,500 USDC
View results
Submission Details
Severity: low
Invalid

Missing checks on _expiryTimestamps argument

Summary

We do not verify that _expiryTimestamps array is the same length as the other arrays.

Vulnerability Details

In the addDistributions function of the Airdrop contract, we check that the length of the tokens array is equal to the lengths of the merkleRoots and _totalAmounts arrays. However, we do not check if _expiryTimestamps array is of the same length as the other parameters.

Impact

The contract owner could add an _expiryTimestamps array that is not of equal length to the other parameters, potentially resulting in distributions with an 'expiryTimestamp' of zero.

Tools Used

Manual review

Recommendations

Ensure that the _expiryTimestamps array length matches the length of the _tokens array.

Updates

Lead Judging Commences

0kage Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Out of scope

Support

FAQs

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