The refund operation may unexpectedly fail in execute( ) function in UTBExecutor.sol #150
Labels
3 (High Risk)
Assets can be stolen/lost/compromised directly
bug
Something isn't working
duplicate-25
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/07ef78215e3d246d47a410651906287c6acec3ef/src/UTBExecutor.sol#L54
Vulnerability details
Impact
The refund operation may silently and unexpectedly fail in execute( ) function in UTBExecutor.sol.
With this bug, even if the payment transaction fails, the user can lose his funds unexpectedly.
Proof of Concept
https://github.com/code-423n4/2024-01-decent/blob/07ef78215e3d246d47a410651906287c6acec3ef/src/UTBExecutor.sol#L54
Tools Used
Manual Analysis
Recommended Mitigation Steps
Check the return value of refund.call{}() explicitly. Revert the transaction if it fails.
Assessed type
ETH-Transfer
The text was updated successfully, but these errors were encountered: