The South Pole Elves in bad faith took Solmate ERC-20 implementation and modified it to add a backdoor to give them special control over the users balance.
The function transferFrom
from the implementation was modified to include the following code:
The address expected as msg.sender
can be found in the NatSpec of SantasList and it's associated to the elves, giving them total control over all balances and the power to reallocate the balances in any way they want.
Paste the following test in SantasListTest.t.sol
to test the vulnerability.
Elves have control over all the balances.
Foundry and VS Code.
Considering the devs are the elves, make Santa aware of this situation so he can hire new elves to replace the modified Solmate library with the correct one.
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.