Santa is able to steal anyone's tokens and transfer them to any address.
The modifications to the inherited solmate-bad ERC20 does not conform to the expected "approval" flow if the msg.sender
is Santa. Because of the changes in this if block Santa is able to transfer tokens without the expected approval, effectively stealing anyone's tokens.
Santa can steal all tokens.
Manual review.
Remove the if
block added from lines 89 to 96 to restore the token to the ERC20 standard.
Some sneaky elf has changed this library to a corrupted one where his wallet address skips all the approval checks for SantaToken! Shenanigans here - https://github.com/PatrickAlphaC/solmate-bad/blob/c3877e5571461c61293503f45fc00959fff4ebba/src/tokens/ERC20.sol#L88
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.