Description:
when the beneficiary at index 0 call InheritanceManager:_getBeneficiaryIndex, it will also return 0.
when a non-beneficiary call InheritanceManager:_getBeneficiaryIndex, it will also return 0.
Impact:
This could mislead a non-beneficiary into mistakenly believing they are a beneficiary.
Proof of Concept:
Add following test into InheritanceManager.t.sol and run the test.
Recommended Mitigation:
should reconsider using mapping(address->bool) to replace the array to check if the address is a beneficiary.
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.