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

L1BossBridge.sol - L1Vault - DDos Vault

Summary

Sending funds to the vault right away will block the funds as no token will be minted on L2

Vulnerability Details

if (token.balanceOf(address(vault)) + amount > DEPOSIT_LIMIT) {
revert L1BossBridge__DepositLimitReached();
}

Impact

Event won't be emitted and the the vault can potentially reach it's limit ending up in an imbalanced vault

Tools Used

Manual

Recommendations

Adding a emergency withdraw function from the vault to avoid having this kind of imbalance situation and send funds back to the user

Updates

Lead Judging Commences

0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

depositTokensToL2(): DoS deposits via DEPOSIT_LIMIT

Support

FAQs

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