Possible turning the result of the market position upside down
In _positionTokenAmount if we provide the max it will basically remove liquidity of userBalanceLong or userBalanceShort
Attacker can manipulate the long or short position winning by calling _removeLiquidity() and then for example if the short was win and long was lose, Attacker can flashloan the long position token in the pool which will turn the market upside down making long to win and short to lose or the reverse thing. Then when market expires it will result in attacker turning sucessfully the price upside down. This all happens in the same block
Also works with
High, Attacker manipulated the market
High Risk: The vulnerability allows an attacker to manipulate the market and turn positions upside down, which could result in financial losses for other users or alter the intended market behavior.
The attacker can manipulate the outcome of long and short positions by exploiting liquidity removal in a way that changes the market dynamics.
Manualy review
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.