Closed code423n4 closed 1 year ago
The token will be burnt so it is not stored on the contract.
miladpiri marked the issue as sponsor disputed
Closing Due to lack of information
GalloDaSballo marked the issue as unsatisfactory: Insufficient proof
Lines of code
https://github.com/code-423n4/2023-03-zksync//blob/main/contracts/L2EthToken.sol#L17
Vulnerability details
Summary
The
L2EthToken
contract does not provide a function to transfer tokens in the contract.Impact
The
withdraw
function of this contract is apayable
function that will accept tokens from the caller, and these tokens may be permanently stored in this contract.Proof of Concept
Tools Used
Manual
Recommended Mitigation Steps
It is recommended to provide a function to extract the token in the contract.