Lack of access control in InheritanceManager.sol::withdrawInheritedFunds() function. Anyone can call this function and then asset distribution will deploy.
withdrawInheritedFunds() function can be called by anyone.That lead to transfer the asset to all beneficiary without reason. It should only be called by beneficiary .
Code detail:
Medium
Impact: Lack of access control that lead to transfer the asset to all beneficiary without reason. Fund or the asset don't lose in this case
Likelihood: high
Add modify for the function
function withdrawInheritedFunds(address _asset) external onlyBeneficiaryWithIsInherited{
//code
}
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.