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.
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.
The PerpDepository contract's getPositionValue function used a 15-second TWAP interval instead of the intended 15-minute TWAP when fetching the mark price. This caused the position value to frequently differ from the true mark price, allowing larger rebalances than should be possible.
The RageTrade senior vault enforces a utilisation cap that blocks withdrawals once loans to the junior vault exceed a set share of deposits. If UXD depegs, a large part of the collateral backing it could be stuck in the vault and impossible to withdraw.
The rebalance and rebalanceLite functions allow any caller to specify which account pays the shortfall, so an attacker can force a user who has approved the contract to pay for a manipulated swap. This lets the attacker steal the entire allowance of any user who has approved the contract.
The Perp depository contract tracks net asset deposits only for asset token deposits, not for quote token deposits made to cover negative PnL. As a result, more UXD tokens can be minted than the recorded net asset deposits, making it impossible for the last users to redeem all UXD tokens.
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.
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.
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.
The function `_rebalanceNegativePnlWithSwap()` uses the same `sqrtPriceLimitX96` parameter for two different Uniswap V3 pools, which may cause the transaction to revert even when it should succeed.
The PerpDepository contract tracks netAssetDeposits, which can become inconsistent with actual asset amounts when the price of the deposited asset changes, causing withdrawals to revert with an underflow error. This prevents users from redeeming all their UXD tokens.
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.
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.
The PerpDepository contract calls a Uniswap V3 swapper to rebalance a negative Perp PnL but never approves the swapper to spend the asset token. As a result, the swap reverts due to insufficient allowance, so the rebalancing path cannot complete.
The PerpDepository contract passed amounts with 18 decimals to vault deposit and withdraw functions that expect the token's native decimals, causing incorrect token amounts to be moved. This could lead to loss of funds or broken functionality due to reverts from insufficient allowance.
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.
USDC deposited into the PerpDepository contract through several functions cannot be withdrawn because the only withdrawal function is limited by an internal counter that prevents redeeming more than was originally deposited. This causes the system's collateral to become inaccessible, effectively making UDX undercollateralized over time.
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.
UP
UXD Protocol
High
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.