Skip to content

Code4rena

DYAD

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

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

Disclosed reports

Newest first. Only what DYAD chose to make public.

Business logic

Incorrect deployment/missing contract will break functionality

The KeroseneManager contract is expected to contain only backing vaults to avoid infinite loops in UnboundedKerosineVault, but VaultManagerV2's getKeroseneValue function requires the same manager to license kerosene deposit vaults, which are not included in the deployment. As a result, getKeroseneValue always returns zero, breaking the valuation of kerosene deposits.

DYAD

Medium
Misconfiguration

setUnboundedKerosineVault not called during deployment, causing reverts when querying for Kerosene value after adding it as a Kerosene vault

The deployment script for the DYAD protocol did not call setUnboundedKerosineVault on the bounded Kerosene vault, so any attempt to query the Kerosene value of a dNFT that uses the bounded vault would revert. This could prevent users from withdrawing or minting DYAD if they had added the bounded Kerosene vault as collateral.

DYAD

Medium
Audit finding

Value of kerosene can be manipulated to force liquidate users

The price of kerosene tokens is calculated from the protocol's total value locked (TVL) and can be manipulated instantly by large depositors withdrawing their collateral. An attacker can drop the kerosene price to push other users' collateralization ratios below the liquidation threshold and liquidate them.

DYAD

Medium
Smart contracts

Kerosene collateral is not being moved on liquidation, exposing liquidators to loss

The liquidation function only transfers non-Kerosene collateral to the liquidator, leaving Kerosene collateral in the liquidated position. A liquidator who fully liquidates a position pays DYAD but receives less collateral than expected, while the liquidated position retains Kerosene collateral.

DYAD

High
Business logic

Flash loan protection mechanism can be bypassed via self-liquidations

The protocol's flash-loan protection only blocks deposits and withdrawals in the same block, but liquidations move collateral without updating that check. An attacker could use a flash loan to deposit, manipulate the kerosene price, self-liquidate into a second account, and withdraw in the same block, opening a position at a much lower collateral ratio than intended.

DYAD

High
Business logic

No incentive to liquidate when CR <= 1 as asset received < dyad burned

The liquidation function requires the liquidator to burn the full borrowed amount but only returns collateral worth less than that when the collateral ratio is below 1, so liquidators lose money and have no incentive to liquidate. This could leave bad debt unliquidated, potentially worsening the protocol's losses.

DYAD

Medium
Business logic

User can get their Kerosene stuck because of an invalid check on withdraw

The withdraw function incorrectly checks the non-Kerosene collateral value against the minted Dyad amount even when withdrawing Kerosene collateral, causing transactions to revert. This prevents users from withdrawing their Kerosene collateral even when their overall collateral ratio is sufficient.

DYAD

High
Business logic

Missing enough exogenous collateral check in VaultManagerV2::liquidate makes the liquidation revert even if (DYAD Minted > Non Kerosene Value)

The liquidation function in VaultManagerV2 lacks a check that the vault's non-kerosene collateral value is at least the DYAD minted, so when a position's total collateral ratio remains at or above 150% due to kerosene but its exogenous collateral falls below the minted DYAD, liquidation reverts. This prevents liquidators from acting, allowing the protocol's core invariant (TVL > DYAD supply) to be broken and potentially causing DYAD to depeg.

DYAD

High
Business logic

Design flaw and mismanagement in vault licensing leads to double counting in collateral ratios and positions collateralized entirely with kerosine

The deployment script licensed the same WETH vault in both the KeroseneManager and VaultLicenser, and licensed the Kerosene vault in the VaultLicenser. This allowed users to register the same WETH vault in both normal and Kerosene vault mappings, double-counting collateral, or to use the Kerosene vault as normal collateral, enabling inflated collateral ratios and positions backed entirely by the volatile Kerosene token.

DYAD

High