53071 sc insight okxhelper function incompatible with the uniswap v3 swap to with permit selector
Description
Brief/Intro
Vulnerability Details
if (useNative) {
canonicalWrapToken.approve(okxApprover, nativeValueToWrap);
} else {
ERC20 depositAsset = ERC20(fromToken);
depositAsset.safeTransferFrom(msg.sender, address(this), fromTokenAmount);
depositAsset.safeApprove(okxApprover, fromTokenAmount);
// No permit logic here
}
(bool success, bytes memory result) = address(okxRouter).call(okxCallData);Impact Details
References
Proof of Concept
Previous53072 sc high ceil vs floor rounding mismatch causes systematic underpayment and unclaimed yield leakageNext53070 sc high validator commission update during max allowed commission change causes incorrect reward calculations
Was this helpful?