When liquidating there is the idea of a closefactor which a liquidator attaches to see how much of the vault they want to liquidate, see here.
Now this liquidation attempt, doesnt block users themselves from liquidating their own accounts, i.e., msg.sender should not be the recipient of the margin of the vault when it gets liquidated. Since this check/logic is not applied, this then allows for a bug flow like the below to be possible:
Borderline low/medium, attached as QA considering this needs to logic of frontruns which is not readily available on the L2 chains where protocol is going to be deployed.
Consider not allowing the msg.sender to liquidate their own positions.
