In the function afterOrderExecution
, safeTransfer()
is used to transfer tokens, but there are no checks to ensure that the recipient address is valid - not the zero address.
eventData.addressItems.items[0].value
and eventData.addressItems.items[1].value
are used as token addresses.
If either of these values is address(0)
, the contract could attempt to transfer tokens to a null address, potentially locking funds.
Loss of Funds – If safeTransfer
is called with address(0)
, the funds are effectively burned, as no one can access them.
Potential Contract Reverts – Some ERC-20 implementations may revert when trying to transfer to address(0)
, which could halt execution.
Manual review
Validate token addresses before calling safeTransfer
, check if the token address is valid. Example:
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
There is no real proof, concrete root cause, specific impact, or enough details in those submissions. Examples include: "It could happen" without specifying when, "If this impossible case happens," "Unexpected behavior," etc. Make a Proof of Concept (PoC) using external functions and realistic parameters. Do not test only the internal function where you think you found something.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
There is no real proof, concrete root cause, specific impact, or enough details in those submissions. Examples include: "It could happen" without specifying when, "If this impossible case happens," "Unexpected behavior," etc. Make a Proof of Concept (PoC) using external functions and realistic parameters. Do not test only the internal function where you think you found something.
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.