Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: high
Invalid

Function withdrawInheritedFunds lacks a condition to restrict ETH withdrawals to validated beneficiaries, allowing the contract to send ETH to any arbitrary address.

Summary

Function withdrawInheritedFunds lacks a condition to restrict ETH withdrawals to validated benificiaries, allowing the contract to send ETH to any arbitrary address.

Vulnerability Details

The **InheritanceManager::withdrawInheritedFunds** function allows ETH withdrawals to any arbitrary beneficiary. This should be restricted using modifiers in the function signature. Applying the existing onlyBeneficiaryWithIsInherited modifier would ensure that only intended beneficiaries can withdraw ETH.

Impact

This will allow contract to send ETH to any abritrary user.Funds could be sent to unintended or compromised addresses
Inside the contract function withdrawInheritedFunds(address _asset) external { doesn't have the modifier onlyBeneficiaryWithIsInherited to restrict.
Due to this , there might be a chance of unintended recpiceient receving the ETH

Tools Used

Slither

Recommendations

Use the Modifier to Ensure Only Approved Beneficiaries Can Withdraw.
function withdrawInheritedFunds(address _asset) external onlyBeneficiaryWithIsInherited {`

Updates

Lead Judging Commences

0xtimefliez Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.