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

Lack of verification of prior successful deposit

Summary

Lack of verification if the sender has first originated a successful deposit

Vulnerability Details

In L1BossBridge::withdrawTokensToL1 there is no verification process to ensure that the caller has first originated a successful deposit of an amount at least egals to the amount to be withdrawn in the L1 part of the bridge.

Impact

Anyone can withdraw tokens without first depositing any.

Tools Used

Manual review

Recommendations

Before executing withdrawal, check if the sender has previously successfully deposited a sufficient amount of tokens either in L1 or L2.

Updates

Lead Judging Commences

0xnevi Lead Judge almost 2 years ago
Submission Judgement Published
Validated
Assigned finding tags:

withdrawTokensToL1(): No check for deposits amount

Support

FAQs

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