Tokens can be sent directly #265
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate
This issue or pull request already exists
Handle
pauliax
Vulnerability details
Impact
Token join contracts check that the final outputAmount is equal to _joinTokenStruct.outputAmount:
While these contracts are only for convenience, a theoretical attack exists here: a malicious actor can monitor the mempool and send the smallest fraction of the output token (basket) directly to the contract thus breaking this check.
Recommended Mitigation Steps
Consider replacing == with >= .
The text was updated successfully, but these errors were encountered: