Description: InheritanceManager::inherit
lacks a proper check to ensure that only legitimate beneficiaries can call it. As a result, any caller can trigger the line 'owner = msg.sender'.
Impact: This vulnerability enables any arbitrary address to assume ownership of the contract by calling InheritanceManager::inherit
, representing a critical security risk.
Recommended Mitigation: Introduce a modifier (e.g., 'onlyBeneficiary') to restrict access to beneficiaries only:
Apply this modifier to the InheritanceManager::inherit
as needed.
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.