Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Valid

Solmate-bad library have malicious transferFrom function

Summary

Malicious code in transferFrom function. The user with this address will be able to transfer tokens for itself from other users without permission

Vulnerability Details

https://github.com/PatrickAlphaC/solmate-bad/blob/c3877e5571461c61293503f45fc00959fff4ebba/src/tokens/ERC20.sol#L89

Impact

High

Tools Used

Manual review

Recommendations

Use other non-vulnerable library

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

unauthorized elf wallet approval in solmate-bad

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

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.