Skip to content

Sherlock

UXD Protocol

Every publicly disclosed report for UXD Protocol and what kind of bugs they were.

disclosed reports
19
most reported class
Business logic
bug classes found
3
first disclosure
2023
Find UXD Protocol on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what UXD Protocol chose to make public.

Business logic

Inaccurate Perp debt calculation

The PerpDepository.getDebtValue function calculates the account debt value without including the owed realized PnL, which is part of the Perp protocol's definition of account value. This makes the debt calculation inaccurate and could lead to incorrect decisions when used by other contracts or off-chain.

UXD Protocol

Medium
Business logic

`rebalanceLite` should provide a slippage protection

The rebalanceLite function lacks slippage protection, allowing partial fills when a price limit is set, which can leave user funds stuck in the Perp vault. An attacker could exploit this to cause users to lose funds.

UXD Protocol

Medium
Business logic

PerpDepository#_rebalanceNegativePnlWithSwap fails to approve vault for quote deposit

The PerpDepository contract's _rebalanceNegativePnlWithSwap function does not approve the vault to spend the quote token before calling deposit, causing the deposit to fail and the function to always revert. An attacker could not exploit this directly, but the function is unusable, disrupting the protocol's rebalancing mechanism.

UXD Protocol

Medium
Business logic

Vulnerable GovernorVotesQuorumFraction version

The protocol used an outdated version of OpenZeppelin contracts containing a known vulnerability in the GovernorVotesQuorumFraction contract. An attacker could potentially exploit this to manipulate governance quorum, though the exact impact is not detailed in the text.

UXD Protocol

Medium
Business logic

PerpDepository#_placePerpOrder miscalculates fees paid when shorting

The fee calculation in PerpDepository's _placePerpOrder applied the exchange fee percentage to the quote amount returned after a short, but that amount had already had fees deducted, so the recorded fee was too low. This made the totalFeesPaid counter inaccurate, which could affect other contracts that rely on it.

UXD Protocol

Medium
Business logic

PerpDepository has no way to withdraw profits depriving stakers of profits owed

The PerpDepository contract lacks a function to calculate or withdraw profits generated by its delta-neutral strategy, so profits owed to stakers become trapped in the contract. An attacker cannot directly exploit this, but stakers lose revenue because the funds cannot be accessed without a contract upgrade.

UXD Protocol

Medium
Business logic

Price disparities between spot and perpetual pricing can heavily destabilize UXD

The deposit function mints UXD based on the amount of vUSD obtained from shorting the deposited asset on a perpetual futures market, so the token is effectively pegged to vUSD rather than USD. When the perpetual trades at a premium, a user can buy the asset on the spot market, mint more UXD than the spot value, and sell it for a profit, which pressures the peg.

UXD Protocol

Medium
Business logic

User specified slippage allows frontrunning

The rebalance and rebalanceLite functions let any caller name the account whose approved funds are used, and the caller also controls the minimum output amount. A frontrunner could copy a pending rebalance call, raise the gas, set the minimum output to zero, and sandwich the Uniswap swap to profit while the named account loses value.

UXD Protocol

High
DoS

Malicious user can use an excessively large _toAddress in OFTCore#sendFrom to break layerZero communication

The OFTCore#sendFrom function accepts an arbitrary-length _toAddress parameter, which is packed into the cross-chain message payload. An attacker can send a message with an excessively large _toAddress from a chain with a high gas limit to one with a lower gas limit, causing the message to fail on the destination and permanently block the communication channel.

UXD Protocol

High