Lack of success check for low level call could make swapAndExecute(...) function fail silently #564
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-641
insufficient quality report
This report is not of sufficient quality
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Lines of code
https://github.com/code-423n4/2024-01-decent/blob/011f62059f3a0b1f3577c8ccd1140f0cf3e7bb29/src/UTBExecutor.sol#L70
Vulnerability details
Impact
Loss of funds to the user
Scenario
Proof of Concept
The UTBExecutor.excute(...) function is used to execute calls in the
UTB.sol#swapAndExecute(...)
function.In a situation where the call on line 70 fails, the transaction may will not revert because the boolean returned value was asigned but not checked to revert if it's false.
Tools Used
Manual review
Recommended Mitigation Steps
Consider checking the returned bool value from an
address.call
Assessed type
call/delegatecall
The text was updated successfully, but these errors were encountered: