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

The contract does not allow to interact with other contracts after inheritance if there are more than 1 beneficiaries

Summary

The contract does not allow to withdraw assets deposited to other contracts after inheritance.

Vulnerability Details

The contract allows to interact with other contracts using the contractInteractions function. For example, the owner can deposit assets to other contracts. The function contractInteractions can be called only by the owner. If there are more than 1 beneficiaries, the owner of the contract is not changed when it is inherited, therefore no one can call the function contractInteractions to withdraw deposited assets.

Impact

If the owner deposited some assets to other contracts, the beneficiaries are unable to withdraw them.

Tools Used

Manual review

Recommendations

Allow beneficiaries to call the contractInteractions function when the contract is inherited.

Updates

Lead Judging Commences

0xtimefliez Lead Judge 9 months ago
Submission Judgement Published
Validated
Assigned finding tags:

impossible to unwind DeFi position from contractInteractions

Support

FAQs

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

Give us feedback!