NFTBridge
60,000 USDC
View results
Submission Details
Severity: low
Invalid

User with no owned tokens can send empty deposit requests from L2

Details

deposit_tokens in L2 bridge contract takes in list of token_ids to be bridged. But it doesn't revert if the list is empty. It just creates a request with any given whitelisted collection and empty token_ids. As the token_ids list is empty nothing will fail and the deposit request will be successful.

Impact

Any user with no owned tokens for a whitelisted collection can create any amount of deposit requests with empty token_ids

Recommendations

Revert if token ids list length is zero in escrow_deposit_tokens

if i == token_ids.len() {
- break ();
+ panic!("empty tokens")
}
Updates

Lead Judging Commences

n0kto Lead Judge 12 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

invalid-empty-tokenIds-starknet-side

No real impact. Attacker will have to pay the deployment of the new contract even with 0 token, and it won’t have any interest do to that since he won’t take the control of the contract.

Support

FAQs

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