Any user can trigger deposit from user that approved L1BossBridge
Given user approved L1BossBridge with L1Token for certain amount, after that any random user can trigger deposition of users funds in the L1Vault of the L1BossBridge.
POC:
In the L1TokenBridge.t.sol add a random user in the test' state:
Add following test:
Run the test -> it passes.
The depositTokensToL2 feature can be highjacked by any user.
Manual code review and automated test
In the function depositTokensToL2(...) ensure msg.sender == from
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.