Skip to content

Immunefi

Puffer Finance

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

disclosed reports
57
most reported class
Business logic
bug classes found
5
first disclosure
2024
Find Puffer Finance on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

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

Business logic

Using deposit results in more shares for the sa

The PufferVault, an ERC4626 vault using stETH as the underlying asset, mints shares based on the requested deposit amount even though stETH's transferFrom leaves a small dust amount behind. This allows a user to receive slightly more shares than expected, potentially minting free shares for dust amounts.

Puffer Finance

Low
Business logic

Silent Failure of ERC Permit Calls in PufferDep

The PufferDepositor contract's swapAndDepositWithPermit functions wrap the ERC20 permit call in a try-catch block that silently ignores failures. An attacker could call these functions with invalid permit data, causing the permit to fail but the swap to proceed without the necessary token allowance, likely resulting in a failed swap.

Puffer Finance

Informational
Business logic

Insecure Token Allowance Management in PufferDe

The PufferDepositor contract does not reset token allowances granted to swap routers after a swap operation, leaving a high allowance. If the swap router is compromised, an attacker could drain tokens from users who have set high allowances.

Puffer Finance

Informational
Business logic

Insufficient Handling of Partial Failures in Wi

The PufferVault contract assumes that withdrawals from Lido and EigenLayer either fully succeed or fully fail, and does not reconcile the actual amount received against the expected amount. If a withdrawal only partly succeeds, the vault's reported asset value could be inflated and mislead users and administrators.

Puffer Finance

High
Business logic

Actual amount of stETH deposited is less than t

The depositStETH function transfers stETH using an amount that can be 1-2 wei less than specified due to Lido's rounding behaviour, so the contract receives less than expected. This could cause a denial of service if the vault deposit fails because the actual balance is lower than the requested amount.

Puffer Finance

Informational
Access control

Restricted modifier should not be used with int

The report claims that the `restricted` modifier from OpenZeppelin's `AccessManagedUpgradeable` is applied to internal functions `_authorizeUpgrade` in `PufferDepositor` and `PufferVault`, which the reporter says bypasses access control because internal functions are not externally callable. The reporter asserts this could allow unauthorised access or operations, but no concrete exploit is demonstrated.

Puffer Finance

Informational
Misconfiguration

No constructor should be used to set in upgrade

The report claims that the PufferDepositor and PufferVault upgradeable contracts set immutable variables in their constructors, which is unsafe because proxies do not see constructor-set values. After an upgrade, those values would be lost, potentially causing calls to go to the zero address and leading to loss of funds.

Puffer Finance

Informational
Access control

Uninitialized uups upgradeable can lead to loss

The implementation contracts for PufferDepositor and PufferVault were left uninitialized, allowing anyone to become the owner of the implementation. An attacker could then upgrade the implementation to a malicious contract and destroy it, potentially making the vault unusable and causing loss of funds.

Puffer Finance

Informational
Business logic

ExcuteTransaction in timelock contract will una

The timelock contract's executeTransaction function does not revert when the target address has no code, so calls to non-existent contracts are treated as successful. An attacker with multisig privileges could queue and execute such transactions, potentially causing funds to be lost or misleading the protocol.

Puffer Finance

Informational
Business logic

Puffer Finance Missing Verification of Externa

The Timelock contract's executeTransaction function does not check whether the external call it makes succeeded, so a call to a non-existent address or with invalid calldata silently fails while the transaction is still marked as executed. An attacker or operator could queue and execute such a transaction, and the contract would emit a success event and clear the queue entry even though nothing happened.

Puffer Finance

Low
Business logic

InitiateETHWithdrawalsFromLido decreases totalA

The vault's internal counter for ETH locked in Lido is incremented by the requested amount, but the actual stETH transferred can differ by a few wei due to a known Lido rounding corner case. This makes totalAssets() slightly lower after the call, so depositors before the call receive more shares than depositors after it.

Puffer Finance

Medium
Business logic

Lido discounted withdrawals are not accounted for

The vault records the full amount requested from Lido withdrawals as still held, but Lido can return a discounted amount after slashing, so the vault's total assets are overstated. This inflates the share-to-asset ratio, which could cause insolvency or incorrect share minting on deposits.

Puffer Finance

Medium
Business logic

Queued data will be lost if Tx is unsuccessful

The Timelock contract deletes a queued transaction from storage before checking whether the external call succeeded, so if the call reverts or returns a false status the queued data is lost and the operator must re-queue and wait again. An attacker cannot directly trigger this, but any failed or ineffective operation causes permanent loss of the queued entry.

Puffer Finance

High
Business logic

Timelock is not capable of performing payable t

The Timelock contract executes queued calls without forwarding any ether, and its queue function neither accepts nor records a value, so payable operations such as native-ETH swaps always fail. Any ether sent to the contract for such a call would be stuck, since there is no withdrawal path.

Puffer Finance

Informational
Business logic

Boolean return value of addresscall function no

The Timelock contract's executeTransaction function calls an external target without checking the boolean success value returned by the low-level call. An attacker or user could execute a transaction that silently fails, making it appear successful and potentially leaving the system in an unexpected state.

Puffer Finance

Low
Business logic

Lack of Success check of the Timelock executeT

The Timelock contract's executeTransaction function calls the target and emits a TransactionExecuted event without checking whether the call succeeded. If the call fails, the queued entry is still cleared and the event still fires, so the operations multisig must re-queue and wait out the delay again, and any dapp relying on the event is misled.

Puffer Finance

Medium
Business logic

Contract uint delay variable cannot be set to i

The Timelock contract's internal delay setter rejects any new delay that is less than or equal to the minimum, so the minimum value itself can never be configured. An attacker cannot exploit this; it is a functional bug that prevents the contract from reaching its intended minimum delay.

Puffer Finance

Informational
Business logic

Double spending or double execution of transact

The TimeLock contract's executeTransaction function does not remove a queued transaction after the COMMUNITY_MULTISIG executes it, so the OPERATIONS_MULTISIG can execute the same transaction again. This allows double spending of treasury assets or re-execution of an upgrade without waiting for the delay period.

Puffer Finance

Low
DoS

Claiming withdrawals from Lido can lead to unbo

The PufferVault contract's claimWithdrawalsFromLido function calls Lido's claimWithdrawal in a loop, and each call performs an unbounded binary search over Lido's checkpoint history, leading to potentially unbounded gas consumption. An attacker could cause out-of-gas errors by triggering claims when the checkpoint history is large, but the report notes this requires an extreme growth in checkpoints and large arrays.

Puffer Finance

Informational
Business logic

The assets accounting of the vault can become o

The vault records the amount of stETH queued for withdrawal from Lido in a locked-amount variable, but if that queued stETH is slashed the ETH actually received is lower than recorded, so the locked amount is not reduced correctly. This makes totalAssets overstate the vault's holdings, so depositors and minters receive fewer shares than they should.

Puffer Finance

Low
Business logic

Self Destruction of inchRouter can lead to loss

The Puffer Depositor contract hardcodes the 1inch AggregationRouterV5 address, which has an owner-only self-destruct function. If the router is destroyed, all swap calls from the depositor would fail, breaking the swap-and-deposit functionality.

Puffer Finance

Informational
Business logic

TimelockcancelTransaction does not check asser

The Timelock contract's cancelTransaction function does not verify that the provided transaction hash corresponds to a queued transaction. An attacker or operator could cancel a non-existent transaction, emitting a false cancellation event while the intended queued transaction remains executable.

Puffer Finance

Informational
Business logic

Possibly protocol insolvency during a LIDO slas

The vault's totalAssets() counts ETH still queued in LIDO's withdrawal queue at the originally requested amount, but a LIDO slashing event can reduce the amount actually claimable. This inflates the vault's reported assets, so early redeemers could receive more than their fair share and leave the vault insolvent for later users.

Puffer Finance

Medium
Business logic

Reverting permit transactions caught in the cat

The deposit functions wrap a permit call in an empty try-catch, so when the permit signature is expired or invalid the error is swallowed and execution continues. The transaction then reverts with a misleading allowance error instead of the real permit failure.

Puffer Finance

Informational
Business logic

Missing slippage protection in functions deposi

The deposit and mint functions in PufferDepositor and PufferVault lack a minimum output parameter, so users can receive fewer shares than expected due to slippage or MEV. An attacker could cause users to get less than they intended, or cause mint transactions to revert.

Puffer Finance

Informational
DoS

Multi requestid claims can trigger DOS

The report claims that passing many withdrawal request IDs at once to the vault's claim function could cause a bottleneck in Lido's withdrawal queue and temporarily freeze user funds. The author asserts a denial of service is possible but the proof of concept output only shows a single claim call completing.

Puffer Finance

Informational
Access control

PufferVaultclaimWithdrawalFromLido according to

The claimWithdrawalFromEigenLayer function in PufferVault is documented as restricted access but lacks the restricted modifier, so any address can call it. The reporter shows a modified test where a random address successfully claims a queued stETH withdrawal from EigenLayer.

Puffer Finance

Informational
Business logic

The PufferVaultgetPendingLidoETHAmount will ret

The vault tracks ETH locked in Lido's withdrawal queue in a state variable that is increased by the requested amount and decreased by the amount actually received on claim. Because stETH rebases and can be slashed, the requested and claimed amounts can differ, so the pending-amount getter can report a value that does not reflect reality.

Puffer Finance

Low
Business logic

Return value of low level isnt checked executio

The TimeLock contract's executeTransaction function makes a low-level call to a target without checking the returned success boolean. An attacker could force the call to fail, causing the transaction to be recorded as executed even though the intended action did not occur.

Puffer Finance

Low
Business logic

Return value of call is not checked causing fai

The Timelock contract's executeTransaction function does not check the success of the external call, so a failed call still emits an event and clears the queued transaction. This forces the operations multisig to re-queue and wait another delay before retrying.

Puffer Finance

Low