58418 sc low verifyswapcalldata cant verify the output token of the swap
Description
Brief/Intro
Vulnerability Details
function _verifyBasicSellToPool(bytes memory action, address owner, address targetToken, uint256 maxSlippageBps) internal view {
(address sellToken, uint256 bps, , , ) = abi.decode(
_slice(action, 4),
(address, uint256, address, uint256, bytes)
);
require(sellToken == targetToken, "IT");
require(bps <= maxSlippageBps, "Slippage too high");
}Impact Details
References
Proof of Concept
Proof of Concept
Previous57127 sc low pending admin should call the function instead of admin Next56830 sc low broken admin ownership transfer logic acceptadminownership requires current admin instead of pending admin blocking role claim
Was this helpful?