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

Missing only beneficiarie calling check

Summary

The withdrawInheritedFunds function is designed to allow beneficiaries to withdraw inherited assets in equal portions. However, it is missing the onlyBeneficiaryWithIsInherited check.

Vulnerability Details

  • The function does not include a onlyBeneficiaryWithIsInherited modifier, which might be necessary to ensure that only eligible beneficiaries can call this function.

Impact

  • Unauthorized users might attempt to withdraw inherited funds.

Tools Used

  • Manual code review

Recommendations

-Add a onlyBeneficiaryWithIsInherited modifier to restrict function access to eligible beneficiaries.

function withdrawInheritedFunds(address _asset) external nonReentrant
+ onlyBeneficiaryWithIsInherited
{
// Rest of code
}
Updates

Lead Judging Commences

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

Support

FAQs

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