Skip to content

Sherlock

Bond Options

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

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

Disclosed reports

Newest first. Only what Bond Options chose to make public.

Business logic

Use A's staked token balance can be used to mint option token as reward for User B if the payout token equals to the stake token

The OTLM contract does not distinguish between the staked token balance and the payout token balance when they are the same token, so rewards minted for one user can consume another user's staked principal. This can cause emergencyUnstakeAll to revert for the last unstaking user, preventing them from recovering their staked funds.

Bond Options

Medium
Business logic

Blocklisted address can be used to lock the option token minter's fund

The option token contract allows the creator to set a blocklisted address as the receiver of funds. When a user mints an option and later tries to exercise it, the transfer to the blocklisted receiver fails, locking the user's funds.

Bond Options

Medium
DoS

stake() missing set lastEpochClaimed when userBalance equal 0

The stake function fails to set lastEpochClaimed for first-time stakers, so their reward claims loop from epoch 0 to the current epoch. As epochs increase, this loop becomes very expensive and could cause out-of-gas errors, preventing new stakes.

Bond Options

Medium
Business logic

claimRewards() If a rewards is too small, it may block other epochs

The reward calculation in claimRewards() can round down to zero for small stakes, and if the payout token does not support zero-value transfers, the claim reverts and blocks subsequent epochs. An attacker could exploit this to prevent other users from claiming rewards or starting new epochs.

Bond Options

Medium
Business logic

Loss of option token from Teller and reward from OTLM if L2 sequencer goes down

The option token contract prevents exercising an option after its expiry timestamp, and the liquidity mining contract returns zero rewards for expired option tokens. If an L2 sequencer outage prevents users from submitting transactions before expiry, they lose both the option and any unclaimed rewards.

Bond Options

Medium
Business logic

All funds can be stolen from FixedStrikeOptionTeller using a token with malicious decimals

The FixedStrikeOptionTeller contract calculates quote token amounts using the payout token's decimals fetched at call time, allowing an attacker to deploy a malicious payout token whose decimals value can be changed between calls. By first setting a large decimals value to create option tokens for zero quote tokens, then setting a small decimals value to exercise or reclaim for a huge quote token payout, the attacker can drain all ERC20 tokens held by the contract.

Bond Options

High
Business logic

`optionTokens` can be expired even though the epoch is not over

The expiry of an option token is rounded down to the nearest day, which can make it expire before the epoch ends. Users who wait until the epoch ends to claim rewards may find their options already expired and lose their value.

Bond Options

Medium
Business logic

The createMarket transaction lack of expiration timestamp check

The createMarket function calculates market length and maxPayout using block.timestamp without a deadline check, so a transaction delayed in the mempool can create a market with a much shorter duration than intended. This leads to an unexpectedly large maxPayout, allowing a malicious user to purchase bonds and receive an excessive amount of payout tokens before the market is closed.

Bond Options

Medium
Business logic

"Equilibrium price" is not used to compute the capacity (OSDA Only)

In the OSDA bond market, the capacity calculation for quote-denominated capacity uses the oracle price without applying the base discount, resulting in a smaller-than-expected maximum payout. This can force users to split large purchases into smaller chunks, causing delays and extra gas fees.

Bond Options

Medium
Business logic

Transferring Ownership Might Break The Market

The market contract checks that the current owner is whitelisted for callbacks when a purchase is made, but transferring ownership does not verify the new owner is whitelisted. If a market uses a callback and ownership is transferred to a non-whitelisted address, all purchases revert, stopping the market.

Bond Options

Medium
Business logic

Fixed Term Teller tokens can be created with an expiry in the past

The Fixed Term Teller contract checked that a bond token's expiry timestamp was not in the past, but token IDs round timestamps down to the nearest day. An attacker could supply an expiry slightly in the future that rounds down to a past day, allowing them to mint and immediately redeem bond tokens.

Bond Options

High
Business logic

Fixed Term Bond tokens can be minted with non-rounded expiry

The deploy() function in BondFixedTermTeller.sol does not round the expiry timestamp to the nearest day, unlike the internal _handlePayout() function. This allows tokens to be minted with arbitrary expiry times, which can be exploited by malicious users to pre-deploy tokens at future timestamps and lock in unexpected expiry times.

Bond Options

Medium
Access control

Teller Cannot Be Removed From Callback Contract

The Callback Contract lacks a function to remove a Teller from its whitelist once added. If a whitelisted Teller becomes vulnerable and is exploited, the owner cannot quickly remove it, potentially allowing an attacker to drain assets from the Callback Contract.

Bond Options

Medium
Audit finding

Market Price Lower Than Expected

The market price calculation in one function rounded down instead of up, contrary to the whitepaper, causing makers to sell tokens at a lower price than expected. This also led to a higher payout and lower total debt, further reducing future market prices.

Bond Options

Medium
Business logic

Create Fee Discount Feature Is Broken

The create fee discount feature is broken because the createFeeDiscount state variable is never initialised, so it remains zero. As a result, users cannot receive any discount on the protocol fee when creating bonds.

Bond Options

Medium
Access control

Auctioneer Cannot Be Removed From The Protocol

The protocol lacks a function to remove an auctioneer from its whitelist once added. If a whitelisted auctioneer is found vulnerable and exploited, the team cannot swiftly remove it, hindering mitigation.

Bond Options

Medium
Business logic

meta.tuneBelowCapacity param is not updated when BondBaseSDA.setIntervals is called

The setIntervals function updates tuneInterval and tuneIntervalCapacity but fails to update tuneBelowCapacity, which is used to decide when price tuning occurs. This can cause tuning to be skipped when it should happen or to occur when it should not, disrupting the market's price adjustment mechanism.

Bond Options

Medium
Audit finding

Debt Decay Faster Than Expected

The debt decay reference time increment is rounded down instead of up, causing debt to decay faster than specified. This leads market makers to sell bond tokens at a lower price than expected.

Bond Options

Medium
DoS

BondAggregator.liveMarketsBy eventually will revert because of block gas limit

The BondAggregator contract's view functions, such as liveMarketsBy, iterate over all markets without pagination, causing gas costs to grow with each new market. Eventually, the gas required exceeds the block gas limit, making these functions always revert and preventing users from retrieving market information.

Bond Options

Medium
Business logic

BondBaseSDA.setDefaults doesn't validate inputs

The setDefaults function in BondBaseSDA lacks input validation, allowing an authorised caller to set parameters that break market creation or closing logic. For example, setting minDepositInterval larger than minMarketDuration prevents new markets from being created.

Bond Options

Medium
Race condition

Read-only reentrancy in BondFixedTermTeller

The BondFixedTermTeller contract updates the total supply of an ERC1155 bond after minting the tokens, allowing a recipient to reenter and observe an outdated supply. An attacker could exploit this to cause a miscalculation in protocols that use the supply to determine bond price.

Bond Options

Medium