Description: The ChristmasDinner::withdraw function transfers all the ERC20 tokens to the Host but it doesn't transfer the collected ETHER making it lost in the contract forever.
Impact: Host won't be able to transfer the collected ETHER to his wallet
Proof of Concept:
Users deposit ETHER
Host calls the ChristmasDinner::withdraw function
No ETHER is added to the Hosts wallet
PoC Code
Add following test:
Recommendation: To prevent this, we should also transfer ETHER from the ChristmasDinner contract to the Host wallet in ChristmasDinner::withdraw
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.