Hunt prep
Before you test Puffer Finance
What 57 disclosed reports say about Puffer 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 | 44 | 0 | – | – | $0 |
| Access control lesson | 7 | 0 | – | – | $0 |
| DoS lesson | 4 | 0 | – | – | $0 |
| Misconfiguration lesson | 1 | 0 | – | – | $0 |
| Smart contracts 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.
-
Silent Failure of ERC Permit Calls in PufferDep
The contract should handle permit failures appropriately, either by removing the try-catch block or by adding logic in the catch block to revert the transaction.
Disclosed
-
Insecure Token Allowance Management in PufferDe
The contract should check the remaining allowance after the swap and reset it to zero or a minimal safe value using the token's approve function.
Disclosed
-
Insufficient Handling of Partial Failures in Wi
The report recommends tracking and verifying the actual amount received for each withdrawal and adjusting the vault's internal accounting, or handling shortfalls by re-queuing the remaining shares.
Disclosed
-
Actual amount of stETH deposited is less than t
The recommendation is to use transferShares() for stETH transfers or integrate wstETH instead.
Disclosed
-
Restricted modifier should not be used with int
The report recommends using `ownable2StepUpgradeable` instead of `AccessManagedUpgradeable` for both contracts.
Disclosed
-
No constructor should be used to set in upgrade
The constructor-set immutable variables in both contracts should be moved into the initialize function.
Disclosed
-
Uninitialized uups upgradeable can lead to loss
The implementation contracts should be initialized by calling the UUPSUpgradeable initializer in their initialize function.
Disclosed
-
Puffer Finance Missing Verification of Externa
The executeTransaction function should revert when the external call returns false, for example by requiring the success boolean.
Disclosed
-
Lido discounted withdrawals are not accounted for
The accounting should be reconciled to the actual amount received on claim, so any shortfall is removed from totalAssets.
Disclosed
-
Queued data will be lost if Tx is unsuccessful
The contract should check the call result and revert or restore the queue entry when the call fails or does not achieve the intended effect, rather than deleting it unconditionally.
Disclosed
-
Timelock is not capable of performing payable t
The timelock should accept and record a value per queued transaction and forward it on execution, and provide a way to recover stray funds.
Disclosed
-
Boolean return value of addresscall function no
The contract should check the success boolean returned by the low-level call and revert if it is false.
Disclosed
-
Lack of Success check of the Timelock executeT
The function should check the success flag and revert (or otherwise not clear the queue and not emit the event) when the call fails.
Disclosed
-
The assets accounting of the vault can become o
The team should pause deposits and mints during such an event and add a restricted function to reduce the locked amount, or track each withdrawal and adjust for any shortfall.
Disclosed
-
Self Destruction of inchRouter can lead to loss
The contract should allow the router address to be updated, for example by storing it in a mutable variable with an admin setter, instead of hardcoding it as an immutable constant.
Disclosed