The cancelShort function calculates the collateral needed to top up a partially filled short record using the stale order price and the order's collateral ratio, which can be below 100%. An attacker can cancel such a short to mint DUSD with less ETH collateral than required, potentially de-pegging the token.
The yDUSD vault's total supply (shares) is not updated when the Ditto protocol mints DUSD discount debt directly to the vault, so the vault's total assets increase while total shares remain zero. A user who deposits DUSD afterwards receives zero shares and loses all deposited assets.
The yDUSD vault's withdrawal timelock could be bypassed because the withdraw function used the caller's withdrawal proposal rather than the owner's. An attacker with a second account could use that account's proposal to withdraw their own assets without waiting the 7-day period.
The discount fee is calculated from the entire debt rather than the traded amount, so an attacker can deliberately trigger a small discounted trade and mint a larger fee to the yDUSD vault, profiting if they hold shares. The attacker could gain more dUSD in fees than lost from the trade.
An attacker could reduce a Short Record's collateral below the minimum required, then cancel the associated Short Order, causing the protocol to mint DUSD with insufficient collateral. The attacker could then liquidate the now-undercollateralised Short Record to earn liquidation rewards.
The function that transfers a short record does not verify that the short order referenced by the NFT still belongs to the same user before cancelling it. An attacker can therefore cancel other users' short orders by reusing identifiers after their own orders are cancelled.
When a user cancels a partially filled short order, the code mints additional DUSD to bring the short record up to the minimum debt, but calculates the required collateral using the short order's original collateral ratio and price rather than the current oracle price and the asset's initial collateral ratio. This lets an attacker mint more DUSD than the collateral they provided, potentially opening an immediately liquidatable position.
A partially filled Short Record can be created without an associated Short Order because the order is not added to the market when its remaining value is below the minimum ask. This prevents the user from exiting the position and blocks primary liquidation, and may block secondary liquidation.
A redemption proposal can list short records that are later closed before anyone disputes it, and the dispute logic then adds the penalty collateral to the already-closed record instead of returning it. This means the proposer's funds are effectively lost when a wrong proposal is disputed after one of its short records has been closed.
The decreaseCollateral function changes a short record's collateral ratio without updating its updatedAt timestamp, so the one-hour dispute buffer does not apply. An attacker can lower their own short record's ratio after a valid redemption proposal, dispute that proposal, and collect the penalty fee from the proposer.
A flawed if check using && instead of || in claimRemainingCollateral allows a shorter to claim collateral for a short record before the dispute period ends. This leads to inaccurate tracking of the protocol's ercDebt and collateral because a deleted short record can still be disputed, causing the asset's totals to include non-existent debt and collateral.
The TAPP's special short record (C.SHORT_STARTING_ID) can be moved to the reusable ID list when fully liquidated, but later filling it does not remove it from that list. An attacker can then transfer a short record NFT to the TAPP, causing the ID to be reused and overwriting the TAPP's short record, which can prevent risky debts from being liquidated.
The LibBytes::readProposalData function used an addition operation instead of a bitwise AND to extract the colRedeemed field from packed proposal data, producing an incorrect value. This could cause the RedemptionFacet contract to use a wrong colRedeemed amount when claiming a redemption.
A previously minted NFT that was not burned when its ShortRecord closed can still be used to transfer a newly created ShortRecord that reuses the same ID. An attacker with an old approval can move the new ShortRecord to themselves.
A user can create a ShortOrder with an ercAmount of minAskEth/2 by matching a bid that leaves that amount and then exiting the ShortRecord using a cancelled ShortOrder ID that still points to it. This can increase gas costs for matching large orders and disincentivize liquidators from liquidating small orders.
When bad debt is socialised, a short record's debt can be increased without updating its timestamp, so an attacker can apply that debt to a short record outside a redemption proposal and then dispute the proposal to earn a penalty. This lets a valid redemption proposal be wrongly disputed.
The proposeRedemption function loads a shortOrder using an attacker-supplied ID and only checks that the order belongs to the shortRecord after a condition that can be bypassed by pointing to a different order. An attacker can therefore keep a small shortOrder on the order book, which later leaves a shortRecord below the minimum size, discouraging liquidators and causing bad debt.
The redemption dispute mechanism allowed a disputer to split a single dispute into multiple smaller disputes, each applying a penalty based on a higher collateral ratio difference, resulting in a larger total penalty than disputing the whole proposal at once. An attacker could exploit this to extract more funds from the redeemer as a disputer reward.
The redemption proposal function used a cached oracle price instead of a fresh one, so the collateral ratio check could be based on stale data. An attacker could propose redemptions that should not qualify, or miss valid ones, reducing the protocol's ability to maintain its peg during volatility.
A redemption proposal increases the redemption fee base rate, but a successful dispute does not decrease it. An attacker can propose and dispute their own redemptions to keep the fee high, preventing dUSD from repegging and potentially causing a depeg.
DI
DittoETH Invitational
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.