In MErc20DelegateMadFixer contract, the sweepAll()
function does not check that receiver is not address(0)
.
Executing the function with address(0)
as parameter will literally burn all the underlying tokens and make them impossible to recover. Not checks are made in this function nor the ones called by this (e.g. token.transfer()
) to prevent this from happenning.
Low impact. It does not affect the operation of the protocol but introduces the possibility of burning all the underlying tokens.
Manual review
Add a check for address(0):
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.