A rounding error in the create function of the FixedStrikeOptionTeller contract allows an attacker to mint put option tokens without providing the required quote token collateral. The attacker can then call reclaim after expiry to drain collateral supplied by other users.
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.
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.
The create function allows minting option tokens when block.timestamp equals expiry, but the exercise function reverts at that same timestamp. An attacker could claim staking rewards at expiry, receiving option tokens that cannot be exercised, leading to a loss of funds.
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.
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.
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.
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.
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.
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.
The price oracle contract on Arbitrum did not check whether the L2 sequencer was down before accepting Chainlink price feed data. An attacker could exploit a sequencer outage to use stale prices for unfair advantage.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
The circuit breaker only closes the market after a transaction that breaches the maximum debt limit, allowing a taker to purchase more payout tokens than intended. An attacker could exploit a sudden drop in the quote token's value to extract payout tokens at almost no cost, up to the maximum payout limit.
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.
The safeTransfer and safeTransferFrom functions in Solmate do not verify that the token address contains contract code. If called on an address without code, they return success without transferring funds, causing the protocol to miscalculate balances and potentially lose funds.
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.
BO
Bond Options
Medium
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.