DOESN'T CHECK FOR RETURN VALUE OF TRANSFERFROM() #255
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
invalid
This doesn't seem right
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Lines of code
Vulnerability details
Impact
In function deposit(), it doesnot check the return value of transferFrom() that helps in transfer of share(assets share) from user to Vault contract,
and furthere this deposit() mints share to user in return
Proof of Concept
For example :
Tools Used
Manual Review
Recommended Mitigation Steps
There should be a check for return value of transferFrom(), if it fails then whole function should revert.
The text was updated successfully, but these errors were encountered: