Description:
There are no validations that the beneficiary already exits in the list of beneficiaries.
This allows the same address to be added multiple times.
Impact:
Medium - there is no direct loss of funds but more of a uneven distribution when the withdrawInheritedFunds
function is called. The duplicate address will receive bigger portion of the assets.
Likelihood: Medium. Adding duplicate beneficiaries requires owner oversight or intentional action, which is plausible during normal usage (e.g., manually adding beneficiaries without checking for duplicates). However, it’s not an automatic or default occurrence, nor does it require an external attack—just a lack of diligence or a UI that doesn’t enforce uniqueness.
Proof of Concept:
Recommended Mitigation:
We can benefit from the mapping suggested in [H-2] and detect duplicates.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.