Unused slippage params
The addLiquidity function in VaderRouter (V1 and V2) ignores the slippage parameters amountAMin and amountBMin, leaving liquidity additions vulnerable to sandwich attacks and MEV. An attacker could manipulate the pool price before and after the transaction to profit at the user's expense.
Submitted by pauliax, also found by TomFrenchBlockchain
Impact
Unused slippage params. function addLiquidity in VaderRouter (both V1 and V2) do not use slippage parameters:
uint256, // amountAMin = unused
uint256, // amountBMin = unused
making it susceptible to sandwich attacks / MEV. For a more detailed explanation, see: https://github.com/code-423n4/2021-09-bvecvx-findings/issues/57
Recommended Mitigation Steps
Consider paying some attention to the slippage to reduce possible manipulation attacks from mempool snipers.
Slippage checks are impossible in the Thorchain CLP model.
Taking as main over #1 as it is a more general issue, but refer to #1 for a more detailed description and justification for the severity rating.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The contract accepts slippage parameters but does not use them in the addLiquidity function.
Impact
Liquidity providers could lose funds to sandwich attacks or MEV, though the protocol team disputes that slippage checks are possible in their model.
What the attacker needed
None
The fix
The slippage parameters should be used to enforce minimum amounts, but the team disputed that this is possible in their model.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When you add money to a trading pool, you can set a minimum amount you are willing to receive to protect against price changes. Here, those minimums are ignored, so someone watching the pending transaction can change the price to their advantage and take value from you.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.