Hunt prep
Before you test DittoETH Invitational
What 21 disclosed reports say about DittoETH Invitational: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 15 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| DoS lesson | 1 | 0 | – | – | $0 |
| Smart contracts lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
DUSD assets can be minted with less ETH collateral than required
The calculation should use the current oracle price and, if the order's collateral ratio is below the initial collateral ratio, use the initial collateral ratio instead.
Disclosed
-
Incorrect accounting bug of the yDUSD vault leads to total loss of depositors’ DUSD assets
The vault should be reworked to use a single-sided auto-compounding rewards mechanism, such as xERC4626, that maintains balances with internal accounting to prevent instantaneous exchange-rate changes.
Disclosed
-
Users can evade the yDUSD vault’s withdrawal timelock mechanism
The withdraw function should check that msg.sender equals owner and revert if they do not match.
Disclosed
-
Attacker can profit from discount fees
The fees minted should not exceed the implied trade loss, for example by targeting a subset of short records to keep total fees low while concentrating deterrence.
Disclosed
-
An attacker can mint free DUSD and liquidate the corresponding Short Record to earn liquidation rewards
The sponsor said they would fix the issue in decreaseCollateral rather than cancelShort, but the report recommends adding a check in cancelOrder to ensure the resulting collateral ratio is not below the redemption and liquidation thresholds.
Disclosed
-
Partially filled Short Records created without a short order cannot be liquidated and exited
The code should set the incoming ask's remaining amount to zero before matching, so the Short Record becomes fully filled instead of partially filled without an order.
Disclosed
-
Closing a SR during a wrong redemption proposal leads to loss of funds
The dispute logic should check whether the short record is still open before crediting the penalty, and the report warns that simply reopening closed records could be misused to avoid liquidations.
Disclosed
-
Valid redemption proposals can be disputed by decreasing collateral
The updatedAt timestamp should be refreshed when collateral is decreased, or redemption proposals of short records above the initial collateral ratio should be disallowed.
Disclosed
-
The shortOrder verification bug on the RedemptionFacet::proposeRedemption() allows an attacker to leave a small shortOrder on the order book, leading to the protocol’s bad debt
The fix is to move the shortOrder validity check (comparing shortRecordId and addr) to immediately after loading the shortOrder from storage, before the minShortErc condition.
Disclosed
-
Flawed if check causes inaccurate tracking of the protocol’s ercDebt and collateral
The check should use logical OR instead of AND to ensure both conditions are validated.
Disclosed
-
The colRedeemed variable is wrongly retrieved in LibBytes::readProposalData function
The `add` operation should be replaced with `and` to correctly apply the mask.
Disclosed
-
transferShortRecord : Can transfer a newly created ShortRecord using a previously minted NFT
The transfer function should check that the ShortRecord's tokenId matches the NFT being transferred, reverting if not.
Disclosed
-
ShortOrders can be created with ercAmount == minAskEth/2 , increasing the gas costs for matching large orders and disincentivizing liquidators from liquidating them
The check in checkShortMinErc() should also verify that the ShortOrder is not cancelled, for example by checking its orderType.
Disclosed
-
Valid redemption proposals can be disputed when bad debt occurs by applying it to a SR outside of the proposal
The updatedAt parameter should be updated every time updateErcDebt is called, or updateErcDebt should be called on the short record at the incorrectIndex before comparing collateral ratios in disputeRedemption.
Disclosed
-
Can manipulate the C.SHORT_STARTING_ID ShortRecord of the TAPP
Prevent ShortRecord NFTs from being sent to TAPPs.
Disclosed