Malicious code was inserted into the original Solmate ERC20.sol file. This code allows an attacker to transfer tokens to themselves from other users' wallets.
The following piece of code was injected into transferFrom
function:
A test shows that the assumption about this kind of attack is correct:
The message left on blockchain is decoded into "I am going to hack Santas Token!". The author of SantasList contract (see comment on line 55 of the file) has the same address as this bad actor.
High. The probability of rug pull is very high.
Manual check.
Remove malicious peace of code. Import dependencies from only from verified sources, e.g. from the official Solmate repository.
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.