Skip to content

Sherlock

Buffer Finance

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

disclosed reports
7
most reported class
Business logic
bug classes found
2
first disclosure
2022
Find Buffer Finance on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Buffer Finance chose to make public.

Business logic

Insufficient support for fee-on-transfer tokens

The protocol's contracts do not account for fee-on-transfer tokens, so when such a token is used, the actual amount received is less than the specified transfer amount. This leads to incorrect fee calculations and share minting, causing users to receive less reimbursement and more shares than they should, resulting in a loss of funds for the protocol and users.

Buffer Finance

Medium
Business logic

Design of BufferBinaryPool allows LPs to game option expiry

The BufferBinaryPool contract allows liquidity providers to withdraw their capital just before an option expires in-the-money, avoiding losses, or to deposit just before an out-of-the-money expiry to claim payouts with minimal risk. This lets LPs game option expiries at the expense of other LPs.

Buffer Finance

High
Audit finding

resolveQueuedTrades() ERC777 re-enter to steal funds

The _openQueuedTrade function transfers a fee refund to the user before marking the queued trade as no longer queued. If the token is ERC777, an attacker can re-enter the cancelQueuedTrade function during the transfer to receive a second refund, stealing funds.

Buffer Finance

Medium
Business logic

Limited support to a specific subset of ERC20 tokens

The Buffer contracts call ERC20 transfer, transferFrom and approve functions without consistently handling the different ways tokens signal success or failure. Depending on the token, a failed transfer could pass unnoticed, or a successful transfer could revert, breaking the protocol for tokens such as USDT.

Buffer Finance

Medium
Business logic

The `_fee()` function is wrongly implemented in the code

The fee calculation function incorrectly computes the unit fee, causing the protocol to receive less in fees than intended and traders to pay less. An attacker could exploit this to reduce their trading costs at the protocol's expense.

Buffer Finance

Medium
Business logic

When private keeper mode is off users can queue orders with the wrong asset

The resolveQueuedTrades function in BufferRouter did not verify that the asset passed in matched the asset of the queued trade, only that the price was signed. When private keeper mode was off, an attacker could queue an order for one asset but resolve it using the price of a different asset with a similar price, opening the option at an incorrect strike and profiting at the expense of liquidity providers.

Buffer Finance

High