Closed howlbot-integration[bot] closed 4 months ago
https://github.com/code-423n4/2024-06-thorchain/blob/main/chain/ethereum/contracts/THORChain_Router.sol#L324
eth is transferred to wrong address
when aggregator fails to execute swapOutV5 when _transferOutAndCallV5 function is called
it should be recipient that receives the the msg.value
but now eth is sent to the aggregator
bool sendSuccess = payable(aggregationPayload.target).send(msg.value);
Nothing
+ bool sendSuccess = payable(aggregationPayload.recipient).send(msg.value);
Other
trust1995 marked the issue as unsatisfactory: Invalid
trust1995 marked the issue as unsatisfactory: Out of scope
Lines of code
https://github.com/code-423n4/2024-06-thorchain/blob/main/chain/ethereum/contracts/THORChain_Router.sol#L324
Vulnerability details
Impact
eth is transferred to wrong address
Proof of Concept
when aggregator fails to execute swapOutV5 when _transferOutAndCallV5 function is called
it should be recipient that receives the the msg.value
but now eth is sent to the aggregator
Tools Used
Nothing
Recommended Mitigation Steps
Assessed type
Other