Ownership rights may be taken away when inheriting.
The inherit function is a function that is exposed externally and does not check whether it is an beneficiary.
Therefore, the inherite function can be called by an attacker who is not the owner or the beneficiaries.
Attack example:
When only one is set as the beneficiaries.
The attacker waits for the inheritance deadline (90 days) or uses a bot to call the inherite function before than others.
Since there is a code like the above, the attacker's address will be set as the owner.
When set as the owner, the attacker can steal the funds.
The attacker's address can be set as the owner and when set as the owner, the attacker can steal the funds.
Manual Review
You can set a modifier to check whether a function related to inheritance is an inheritor.
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.