ERC677 onTokenTransfer return value not check #12
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
invalid
This doesn't seem right
withdrawn by warden
Special case: warden has withdrawn this submission and it can be ignored
Lines of code
https://github.com/code-423n4/2023-05-chainlink/blob/709cde28937727a729b9b5a6653e3720227f9897/contracts/pools/tokens/ERC677.sol#L20
Vulnerability details
Impact
According to the ERC677 specification, the
onTokenTransfer
interface has a bool return, but the code implementation does not check this return value.This results in a problem with callback of receiver contract, when the receiver contract rejects the call, it may only return false and not revert. However, according to the code implementation, the callback will succeed silently.
Proof of Concept
Tools Used
Manual review
Recommended Mitigation Steps
check
onTokenTransfer
return valueAssessed type
CanAuto
The text was updated successfully, but these errors were encountered: