refund call don't check return success. #147
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-25
edited-by-warden
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/d562762c3bf58cca7e24171873fb7b6fbfa7b2b5/src/UTBExecutor.sol#L54
Vulnerability details
Impact
refund call don't check return success, this may cause user to lose funds.
Proof of Concept
According to the code, only check the low level to target success or not but not check the refund call success or not. If the target call success but the refund call fail, the user will lose funds.
Tools Used
manual
Recommended Mitigation Steps
check low level call return value of refund call.
Assessed type
Invalid Validation
The text was updated successfully, but these errors were encountered: