Normal behavior: Contracts that may receive native ETH should include a mechanism to withdraw ETH (or explicitly prohibit/avoid receiving ETH).
Problem: withdrawTokens only handles ERC20 transfers, and the contract lacks withdrawETH/receive fallback handling; any ETH sent to the contract becomes non-recoverable.
Likelihood:
Occurs if ETH is accidentally sent to the contract (mistaken transfer), or via selfdestruct of another contract, or if future code becomes payable.
If the contract never holds ETH, the likelihood is low.
Impact:
ETH deposited into the contract would be permanently locked without an ETH withdrawal path.
Value loss for owner or users who mistakenly send ETH.
If the contract may receive ETH, implement ETH withdrawal and an optional receive handler:
If contract must never receive ETH, add revert in receive() to prevent accidental deposits:
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.