At LidoVault.sol, _withdrawFromYieldPool()
function, ETH transfer return value is not checked
#137
Labels
3 (High Risk)
Assets can be stolen/lost/compromised directly
bug
Something isn't working
duplicate
This issue or pull request already exists
Lines of code
https://github.com/code-423n4/2022-05-sturdy/blob/78f51a7a74ebe8adfd055bdbaedfddc05632566f/smart-contracts/LidoVault.sol#L122-L149
Vulnerability details
Impact
At
_withdrawFromYieldPool()
ETH transfer return value is not checked as the return statement at line #141 breaks the return value checking.Proof of Concept
https://github.com/code-423n4/2022-05-sturdy/blob/78f51a7a74ebe8adfd055bdbaedfddc05632566f/smart-contracts/LidoVault.sol#L122-L149
Tools Used
Manual Review
Recommended Mitigation Steps
Shift the return statement on line number:142
The text was updated successfully, but these errors were encountered: