Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: medium
Invalid

Missing Deadline Check in `withdrawInheritedFunds()`

Summary

The withdrawInheritedFunds function does not check whether the deadline has passed (block.timestamp >= deadline), allowing withdrawals to occur prematurely.

Vulnerability Details

  • The function only checks if isInherited is true but does not enforce the deadline.

  • This allows anyone to call withdrawInheritedFunds before the inheritance process is complete or the deadline has passed.

Impact

  • Premature Withdrawals: Funds can be withdrawn before the intended deadline, violating the contract's logic.

  • Security Risk: Unauthorized or premature withdrawals could disrupt the intended inheritance process.

Recommendations

require(block.timestamp >= deadline, "Deadline not yet passed");
Updates

Lead Judging Commences

0xtimefliez Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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