Skip to content

Sherlock

Symmetrical Update

Every publicly disclosed report for Symmetrical Update and what kind of bugs they were.

disclosed reports
39
most reported class
Business logic
bug classes found
6
first disclosure
2023
Find Symmetrical Update on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Symmetrical Update chose to make public.

Business logic

`liquidatePositionsPartyA` limits partyB loss to partyB allocated balance, which can lead to inflated partyB balance and loss of funds for protocol users

The liquidation function limits partyB's loss to its current allocated balance, so if partyB has both a profitable and a losing position, liquidating the losing position first can zero out the balance and then the profitable position adds its full profit, inflating partyB's balance. This can make the protocol owe more than it holds, potentially causing a bank run.

Symmetrical Update

High
Business logic

Wrong calculation of solvency in `fillCloseRequest` prevents the position from being closed even if the user is solvent after position closure

The solvency check in `fillCloseRequest` requires both parties to be solvent at both the market price and the provided close price, causing the transaction to revert even when the close price would make both parties solvent. This prevents position closure and can lead to unfair liquidation and loss of funds for partyA.

Symmetrical Update

Medium
Business logic

MultiAccount `depositAndAllocateForAccount` function doesn't scale the allocated amount correctly, failing to allocate enough funds

The MultiAccount.depositAndAllocateForAccount function uses the same amount value for deposit and allocate, but deposit amounts use the collateral token's decimals while allocate amounts use 18 decimals. For a token like USDC with 6 decimals, this causes the allocated amount to be 1e12 times smaller than intended, leaving the user with only a dust allocation.

Symmetrical Update

Medium
Access control

Suspended PartyBs can bypass the withdrawal restriction by exploiting `fillCloseRequest`

A suspended PartyB can bypass the withdrawal restriction by using a separate PartyA account to create a deliberately losing position, then filling the close request to move funds out. This allows the attacker to transfer ill-gotten gains out of the protocol, causing losses to the protocol and its users.

Symmetrical Update

Medium
Business logic

Liquidating a turned solvent Party A does not credit the profits to Party A

During a multi-step liquidation, if Party A becomes solvent again after the liquidation starts, the profits from Party A's profitable positions are not credited to Party A's allocated balance, while Party B's losses are deducted. Instead, Party A's allocated balance is reset to zero, so the profits remain in the protocol.

Symmetrical Update

Medium
Business logic

Position value can fall below the minimum acceptable quote value

A party could partially fill a close request after the other party had cancelled it, leaving the position value below the minimum acceptable quote value. This breaks an invariant and could make liquidation uneconomical, exposing users to greater market risk.

Symmetrical Update

Medium
Business logic

Consecutive symbol price updates can be exploited to drain protocol funds

The liquidation contract allows a liquidator to update symbol prices multiple times during a multi-step liquidation as long as the overall unrealized profit and loss and total unrealized loss remain unchanged. A malicious liquidator colluding with a counterparty can exploit this to inflate the counterparty's payout, draining protocol funds.

Symmetrical Update

Medium
Business logic

Party B liquidation can expire, causing the liquidation to be stuck

The liquidation of Party B can become permanently stuck if the liquidation timeout is reached before the positions are liquidated, because the required price signature must be created within that timeout period. An attacker could exploit this by delaying liquidation until the timeout expires, causing the liquidation status to remain true and blocking further liquidations.

Symmetrical Update

Medium
Audit finding

Rounding error when closing quote

A rounding error in the closeQuote function can cause the locked balance to remain unchanged when a position is partially closed with a very small filledAmount. An attacker could repeatedly close tiny amounts to accumulate locked balances, reducing the available balance they can withdraw.

Symmetrical Update

Medium
Business logic

`partyA` can inflate the uPnL with no cost

A partyA could open a long limit position with an openedPrice of 0, causing no locked values and inflating its unrealised profit (uPnL) at no cost. This could let partyA avoid liquidation and wait for favourable price movements.

Symmetrical Update

Medium
Business logic

liquidatePositionsPartyB can be used by malicious liquidator to liquidate only select positions which artificially inflates partyA upnl and allows to steal funds

The two-step liquidation process for partyB allows a malicious liquidator to liquidate only selected positions, temporarily inflating partyA's unrealised profit and enabling partyA to deallocate funds that should cover losses, leaving bad debt. This can be exploited to steal funds from other parties or the protocol.

Symmetrical Update

High
Business logic

setSymbolsPrice() can use the priceSig from a long time ago

The setSymbolsPrice function only checks that the price signature timestamp is not too far in the future, but does not check that it is recent enough. An attacker could reuse an old price signature with a large negative unrealised profit and loss value to trigger a liquidation of partyB.

Symmetrical Update

High
Business logic

In case if trading fee will be changed then refund will be done with wrong amount

The trading fee for a quote is calculated using the current fee rate at the time of cancellation, not the rate when the quote was created. If the fee rate changes between creation and cancellation, the refunded fee amount will be incorrect, causing a loss to either the user or the protocol.

Symmetrical Update

Medium
Business logic

Wrong calculation of solvency after request to close and after close position

The solvency check functions for closing a position fail to account for extra profit from the difference between the close price and the current price, causing transactions to revert even when the user would be solvent after closing. This prevents users from closing positions in cases where the price difference would make them solvent.

Symmetrical Update

Medium
Business logic

`emergencyClosePosition` can be blocked

The emergencyClosePosition function only works when a position's status is OPENED, but PartyA can change the status to CLOSE_PENDING by requesting to close a tiny amount, causing emergency closes to revert. This could block PartyB from urgently closing positions during emergency mode, potentially leading to losses.

Symmetrical Update

Medium
Business logic

Imbalanced approach of distributing the liquidation fee within `setSymbolsPrice` function

The setSymbolsPrice function only records the first liquidator who calls it, so a malicious liquidator can call it with minimal symbol prices and still receive the full liquidation fee. This leaves the liquidation incomplete and disincentivises others from finishing, potentially forcing the counterparty to complete the process at their own cost.

Symmetrical Update

Medium
Business logic

Users might immediately be liquidated after position opening leading to a loss of CVA and Liquidation fee

The insolvency check in the openPosition function is performed before the locked balance is adjusted to maintain fixed leverage, so the check may pass even though the adjusted locked value would make the account insolvent. As a result, a user could open a position and immediately become liquidatable, losing their CVA and liquidation fee.

Symmetrical Update

Medium
Business logic

Quote that have already been liquidated can be liquidated again in some cases

The liquidation of PartyB and the removal of their open positions are separate steps, so if the second step is not called, the positions remain open. Later, when PartyA is liquidated, these already-liquidated positions are still included in the profit and loss calculation, which can divert funds to the already-liquidated PartyB and cause a loss to other PartyBs.

Symmetrical Update

Medium
Race condition

Liquidation can be blocked by incrementing the nonce

A liquidatable party can front-run a liquidation transaction by incrementing their on-chain nonce, causing the liquidation signature to become invalid and the liquidation to revert. This allows them to block liquidation and potentially avoid losses.

Symmetrical Update

High