Summary:
The modifier InheritanceManager::onlyBeneficiaryWithIsInherited uses an unbounded loop with an out-of-bound exception to for beneficiaries, leading to high gas usage and potential vulnerabilities.
Vulnerability Details:
Iterating with a loop that exceeds the beneficiaries array bounds is inefficient and may lead to unintended errors.
Impact:
Low – While not immediately dangerous, it is inefficient and could be optimized.
Tools Used:
slither, aderyn, foundry
Recommendations:
Replace the current logic with custom errors and more efficient checks to avoid potential issues.
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.