49835 sc insight dex aggregator unused eth loss
Description
Brief / Intro
Vulnerability Details
function _checkAndMintNativeAmount(uint256 nativeAmount) internal returns (bool useNative) {
if (nativeAmount > msg.value) {
revert DexAggregatorWrapper__InsufficientEthForSwap();
}
if (nativeAmount > 0) {
// Direct WETH call, no SafeTransferLib needed here
canonicalWrapToken.deposit{ value: nativeAmount }();
useNative = true;
}
// Implicitly returns false if nativeAmount is 0
}Impact Details
References
Proof of Concept
1
2
3
Previous49854 sc critical dex aggregator partial fill token lossNext50412 sc high illegitimate reward claim after unstake due to overlapping reward rate checkpoints
Was this helpful?