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

Function "contractInteractions" stores only one interaction per contract

Summary

Function contractInteractions overwrites data for a contract if there are stored interactions with the same contract.

Vulnerability Details

When function InheritanceManager::contractInteractions is called with _storeTarget set to true, the data is stored in the interactions mapping. The issue here is that if there are several interactions with the same contract, each new interaction overrides the data from the previous interactions.

Impact

Some interactions with other contracts will be lost if there are new interactions with the same contract.

Tools Used

Manual review

Recommendations

Change type of interactions to mapping(address protocol => bytes[]) and store all interactions for every contract.

Updates

Lead Judging Commences

0xtimefliez Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Appeal created

al88nsk Submitter
9 months ago
0xtimefliez Lead Judge
9 months ago
0xtimefliez Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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

Give us feedback!