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

Lack of control over duplicate beneficiaries

Summary

There is no mechanism implemented in this function to prevent duplicate addresses from being added. This means that you can add an address to the list multiple times, which may cause problems in the contract logic (such as sharing assets across other functions).

Vulnerability Details

In the addBeneficiary function, no check is made for duplicate beneficiaries, which causes duplicate beneficiaries to be entered, which effectively causes unfair distribution.

Impact

Incorrect division of property due to the wrong number of beneficiaries

Tools Used

manual review

Recommendations

To avoid duplicate beneficiaries, you can add a mapping and check it before pushing.

Updates

Lead Judging Commences

0xtimefliez Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
0xtimefliez Lead Judge 4 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.