Users can deposit tokens on L2 to be bridged on L1 by calling bridge::deposit_tokens():
The use_withdraw_auto bool parameter is used to automatically withdraw tokens on L1 using Starklane indexer, but has been disabled on L1 due following the last audit:
However, the option is still available to users on the L2 bridge, therefore they can call bridge::deposit_tokens() with use_withdraw_auto: true and tokens will be stuck and lost because bridge::withdrawTokens() on L1 will always revert.
Loss of funds.
Hardcode use_withdraw_auto: false in bridge::deposit_tokens() on L2:
Impact: High, token will be stuck in L2 bridge. Likelyhood: Very low, option is available in L2 but has been disabled since March on L1, would be almost a user error.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.