Hunt prep
Before you test Buffer Finance
What 7 disclosed reports say about Buffer Finance: 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 | 5 | 0 | – | – | $0 |
| DoS 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.
-
Insufficient support for fee-on-transfer tokens
The contracts should check the balance before and after token transfers and use the actual received amount instead of the specified amount.
Disclosed
-
Design of BufferBinaryPool allows LPs to game option expiry
The lockup period was made adjustable in the constructor, but the report recommends an epoch-based withdraw and deposit buffer to fully prevent the issue.
Disclosed
-
resolveQueuedTrades() ERC777 re-enter to steal funds
The contract was fixed by moving the state update (setting isQueued to false) before the external token transfer, following the checks-effects-interactions pattern.
Disclosed
-
Limited support to a specific subset of ERC20 tokens
The contracts were changed to use OpenZeppelin's SafeERC20 for all token transfers, which was confirmed as fixed in a pull request.
Disclosed
-
resolveQueuedTrades is intended to be non atomic but invalid signature can still cause entire transaction to revert
The issue was fixed by replacing ECDSA.recover with ECDSA.tryRecover to prevent reverts.
Disclosed
-
The `_fee()` function is wrongly implemented in the code
The fee calculation was fixed in a pull request to use the correct formula.
Disclosed
-
When private keeper mode is off users can queue orders with the wrong asset
The asset pair should be stored in the options contract and the router should read it directly instead of relying on the caller to supply the correct asset.
Disclosed