Hunt prep
Before you test DYAD
What 19 disclosed reports say about DYAD: 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 | 11 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 0 | – | – | $0 |
| Misconfiguration 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.
-
Incorrect deployment/missing contract will break functionality
The fix should store kerosene vault information in the Licenser contract and change the isLicensed check in VaultManagerV2 to use vaultLicenser instead of keroseneManager.
Disclosed
-
setUnboundedKerosineVault not called during deployment, causing reverts when querying for Kerosene value after adding it as a Kerosene vault
The deployment script should be updated to call setUnboundedKerosineVault on the bounded Kerosene vault after both vaults are deployed.
Disclosed
-
Liquidating positions with bounded Kerosen could be unprofitable for liquidators
The report recommends making seized Kerosene withdrawable and valuing bounded and unbounded Kerosene equally when calculating the amount to seize.
Disclosed
-
Value of kerosene can be manipulated to force liquidate users
The kerosene price should be calculated using a time-weighted average price (TWAP) mechanism to make it more stable and resistant to instant manipulation.
Disclosed
-
VaultManagerV2.sol::burnDyad function is missing an isDNftOwner modifier, allowing a user to burn another user’s minted DYAD
Add an isDNftOwner modifier to burnDyad to ensure the caller owns the specified DNft.
Disclosed
-
Attacker can frontrun to prevent vaults from being removed from the dNFT owner’s position
Allow dNFT owners to remove vaults even if they have assets, with a warning about collateral reduction and liquidation risk.
Disclosed
-
Users can get their Kerosene stuck until TVL becomes greater than Dyad’s supply
The Kerosene vaults should be kept unlicensed (i.e., not usable) until enough users migrate their positions from V1 so that the TVL reaches Dyad's total supply.
Disclosed
-
Kerosene collateral is not being moved on liquidation, exposing liquidators to loss
The liquidate function should also iterate over the Kerosene vaults and move the corresponding collateral to the liquidator.
Disclosed
-
Flash loan protection mechanism can be bypassed via self-liquidations
The report says there is no good way to prevent the vector because MEV bots rely on flash loans, and suggests making the kerosene price less manipulable and adding a mint fee.
Disclosed
-
No incentive to liquidate small positions could result in protocol going underwater
The report recommends setting a minimum deposit amount (e.g., $500–600) before users can mint DYAD; the project acknowledged the issue as known and said they would liquidate small positions themselves.
Disclosed
-
No incentive to liquidate when CR <= 1 as asset received < dyad burned
The liquidation calculation should be refactored so that a liquidator can repay the debt and still receive a reward, for example by allowing them to burn only the DYAD equivalent of the collateral or by awarding Kerosene as a bonus.
Disclosed
-
Unable to withdraw Kerosene from vaultmanagerv2::withdraw as it expects a vault.oracle() method which is missing in Kerosene vaults
The withdrawal logic should be split into separate functions for exogenous collateral and Kerosene, so that Kerosene withdrawals do not call oracle().
Disclosed
-
Inability to perform partial liquidations allows huge positions to accrue bad debt in the system
Partial liquidations should be implemented, with the collateral paid to the liquidator recalculated based on the amount they cover.
Disclosed
-
Attacker can frontrun user’s withdrawals to make them revert without costs
The deposit function should only update the last-deposit block when the vault is licensed, or should prevent deposits to dNfts the caller does not own.
Disclosed
-
User can get their Kerosene stuck because of an invalid check on withdraw
The withdraw function should differentiate between Kerosene and non-Kerosene USD values when checking collateral requirements.
Disclosed