In function depositTokensToL2 the transfert of token is done from an arbitrary address provided as a parameter of the function
The function safeTransferFrom used in depositTokensToL2 allows a user to deposit tokens in the vault. The address from which the token are transferred is an address provided as a parameter of the function depositTokensToL2.
It is then possible for anyone to call the depositTokensToL2 function with a from address from anyone who has approved the L1BossBridge contract to spend his token.
It is then possible for anyone to call the depositTokensToL2 function with a from address from anyone who has approved the L1BossBridge contract to spend his token.
slither
Use msg.sender as from in safeTransferFrom.
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.