The appointTrustee
function in the InheritanceManager contract does not validate the provided trustee address, allowing it to be set to the zero address.
By not checking for a non-zero address in the appointTrustee
function, the contract permits the trustee role to be assigned to address(0). This misconfiguration can lead to unintended behavior in subsequent trustee-related functions, such as asset valuation and buyout processes, as the zero address cannot perform trustee actions.
Indirect Impact: This issue creates a risk of misconfiguration, potentially disabling trustee functionality. However, it does not directly allow fund theft.
Manual review
Foundry (Forge) unit tests demonstrating that the trustee can be set to address(0)
Add a validation check in the appointTrustee
function to ensure that the provided trustee address is not the zero address.
Update the function’s documentation to clarify acceptable trustee addresses.
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.