The deposit_tokens of the bridge.cairo
allow users to bridge tokens from the L2 ( starknet
) to the ethereum mainnet (L1)
However, there exist a vulnerability that will prevent users from withdrawing their bridged token (NFT) on the mainnet.
The issue here is that after an audit report, the use of use_withdraw_auto
is disallowed, meaning a token cannot be withdrawn when the use_withdraw_auto
is set to true from the L2 (starknet
);
the problem is , users can still initiate a bridge of their token (NFT) with the use_withdraw_auto
as true, this is because it was never disallowed from the starknet
side of the code, this will also means that users will never be able to withdraw their bridged assets (NFT) :
Users bridging to the mainnet will have their assets stuck and unable to withdraw
manual review
Disable the user of the param on the L2 (starknet) also.
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.