The NFT can be bridged from the hard-fork chain after the source chain hard-fork.
Users can call depositTokens
function to transfer NFT from the source chain to starknet chain. However, if the chain hard-fork, the NFT can be bridged to starknet chain from both the source chain and the hard-fork chain because there is no chain-id verification when calling the depositTokens
function:
As we can see, there is no any verification about the chain-id. Such that NFT holders can bridge their NFT from the hard fork chain to starknet chain after the source chain hard-fork, he also own the NFT in the source chain at the same time so he can double his NFT in such a way.
Although the possibility is low, the effect is enormous. See omni bridge vulnerability when Ethereum’s transition to the PoS chain.
NFT holders can double their NFT after the source chain hard-fork.
vscode, Manual Review
Add chain-id verification when calling the depositTokens
function.
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.