Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: medium
Invalid

Missing Validation for `startTime` in `createVestingSchedule` Function

Summary

The startTime parameter in the createVestingSchedule function is not validated, allowing the creation of vesting schedules with invalid or malicious startTime values. This could lead to:

Vesting schedules starting in the past: Tokens could become immediately claimable, bypassing the intended vesting period.

Vulnerability Details

The createVestingSchedule function does not validate the startTime parameter. Specifically:

  • There is no check to ensure startTime is in the future (i.e., startTime > block.timestamp).

Impact

  • The issue requires the caller to intentionally or accidentally provide an invalid startTime.

  • Since the function is restricted to ORCHESTRATOR_ROLE, the likelihood of exploitation depends on the trustworthiness of the role holder.

  • However, mistakes in setting startTime (e.g., using a past timestamp) are plausible.

Tools Used

Manual Review

Recommendations

require(startTime > block.timestamp, "startTime must be in the future");
Updates

Lead Judging Commences

inallhonesty Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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