Solmate library maliciously modified
Solmate library is not the original transmissions11/solmate
one, but a modified one instead, a malicious fork patrickalphac/solmate-bad
which introduces a bug into the ERC20.sol::transferFrom
contract. The modified code allows 0x815F577F1c1bcE213c012f166744937C889DAF17
to bypass the allowance check and transfer tokens from and to random addresses.
Output:
HIGH as 0x815F577F1c1bcE213c012f166744937C889DAF17
can steal user's funds and move balances around
Manual Review
Use the correct lib transmissions11/solmate
version in the foundry project.
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.