the function uses an arbitrary from parameter in the transferFrom method, which could be a security risk.
source link:- https://github.com/Cyfrin/2023-11-Boss-Bridge/blob/dad104a9f481aace15a550cf3113e81ad6bdf061/src/L1BossBridge.sol#L74
The impact of the above issue is that the function depositTokensToL2 could be exploited by an attacker who can call it with any from address that has a positive token balance. This could allow the attacker to steal tokens from other users and deposit them to the vault, where they can be minted on L2. This could result in a loss of funds for the legitimate token holders and a breach of the security and integrity of the system. Therefore, it is important to use msg.sender as from in the transferFrom method, as this ensures that only the owner of the tokens can initiate the transfer.
slither
foundry
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.